13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
const SpotifyController = require('./src/spotify.js')
|
|
|
|
var spotifyController = new SpotifyController().then(initializingSuccess, printError)
|
|
|
|
// SpotifyController initialized
|
|
function initializingSuccess(result) {
|
|
console.log(result)
|
|
}
|
|
|
|
// Print the error to the console
|
|
function printError(error) {
|
|
console.log(error)
|
|
} |