mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
Remove legacy hack
This commit is contained in:
@@ -764,15 +764,6 @@ Tomahawk.PluginManager = {
|
|||||||
|
|
||||||
resolve: [],
|
resolve: [],
|
||||||
invokeSync: function (requestId, objectId, methodName, params) {
|
invokeSync: function (requestId, objectId, methodName, params) {
|
||||||
if (!Tomahawk.resolver.instance.apiVersion || Tomahawk.resolver.instance.apiVersion < 0.9) {
|
|
||||||
if (methodName === 'artistAlbums') {
|
|
||||||
methodName = 'albums';
|
|
||||||
} else if (methodName === 'albumTracks') {
|
|
||||||
methodName = 'tracks';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (this.objects[objectId][this.wrapperPrefix + methodName]) {
|
if (this.objects[objectId][this.wrapperPrefix + methodName]) {
|
||||||
methodName = this.wrapperPrefix + methodName;
|
methodName = this.wrapperPrefix + methodName;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user