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