Comment 24 for bug 1068662

Revision history for this message
Daniel Walker (dwalker-p) wrote : Re: webapps are not working :(

For grooveshark.com it never asked me to install the webapp, _until_ I commented out a couple of lines of javascript.

//if (isCorrectPage()) {
    Unity.init({ name: "Grooveshark",
   domain: 'grooveshark.com',
   homepage: 'http://grooveshark.com',
                 iconUrl: "icon://unity-webapps-grooveshark",
                 onInit: wrapCallback(musicPlayerSetup) });
//}

In this file,

/usr/share/unity-webapps/userscripts/unity-webapps-grooveshark/grooveshark.user.js

the isCorrectPage() seems to check if the page has some specific elements in it.. Also I'm using grooveshark's new interface which would likely have some new element names or someting like that.

I didn't actually install the webapp when it asked, since if the webpage is different I'm guess it won't work anyway.