mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Handle scripts not returning promises
This commit is contained in:
@@ -607,7 +607,7 @@ Tomahawk.PluginManager = {
|
||||
},
|
||||
|
||||
invoke: function (requestId, objectId, methodName, params ) {
|
||||
this.objects[objectId][methodName](params).then(function (result) {
|
||||
Promise.resolve(this.objects[objectId][methodName](params)).then(function (result) {
|
||||
if (typeof result === 'object') {
|
||||
Tomahawk.reportScriptJobResults({
|
||||
requestId: requestId,
|
||||
|
Reference in New Issue
Block a user