mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Make promises available to resolvers as well
This commit is contained in:
@@ -39,7 +39,6 @@ JSInfoSystemHelper::~JSInfoSystemHelper()
|
|||||||
QStringList JSInfoSystemHelper::requiredScriptPaths() const
|
QStringList JSInfoSystemHelper::requiredScriptPaths() const
|
||||||
{
|
{
|
||||||
return QStringList()
|
return QStringList()
|
||||||
<< RESPATH "js/es6-promise-2.0.0.min.js"
|
|
||||||
<< RESPATH "js/tomahawk-infosystem.js";
|
<< RESPATH "js/tomahawk-infosystem.js";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -211,6 +211,10 @@ JSResolver::init()
|
|||||||
// add c++ part of tomahawk javascript library
|
// add c++ part of tomahawk javascript library
|
||||||
d->engine->mainFrame()->addToJavaScriptWindowObject( "Tomahawk", d->resolverHelper );
|
d->engine->mainFrame()->addToJavaScriptWindowObject( "Tomahawk", d->resolverHelper );
|
||||||
|
|
||||||
|
// load es6-promises shim
|
||||||
|
loadScript( RESPATH "js/es6-promise-2.0.0.min.js" );
|
||||||
|
|
||||||
|
|
||||||
// Load CrytoJS core
|
// Load CrytoJS core
|
||||||
loadScript( RESPATH "js/cryptojs-core.js" );
|
loadScript( RESPATH "js/cryptojs-core.js" );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user