mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
Make promises available to resolvers as well
This commit is contained in:
parent
d5fab40884
commit
f075259b8d
@ -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" );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user