diff --git a/radiant-player-mac/AppDelegate.m b/radiant-player-mac/AppDelegate.m index 46745d82..5b8cec76 100644 --- a/radiant-player-mac/AppDelegate.m +++ b/radiant-player-mac/AppDelegate.m @@ -975,6 +975,8 @@ - (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame { // Only apply the main script file when the player is ready. if ([[webView mainFrameDocument] querySelector:@"#playerSongInfo"]) { + /* Recent update Object.assign() returns undefined making a lot of the functionality broken adding a Polyfill should fix this */ + [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"if(Object.assign == undefined){Object.defineProperty(Object,\"assign\",{enumerable:!1,configurable:!0,writable:!0,value:function(a){\"use strict\";if(void 0===a||null===a)throw new TypeError(\"Cannot convert first argument to object\");for(var b=Object(a),c=1;c