Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Google Drive now passes 'state' via GET parameter #8

Open
nishio opened this issue Nov 20, 2013 · 0 comments
Open

Google Drive now passes 'state' via GET parameter #8

nishio opened this issue Nov 20, 2013 · 0 comments

Comments

@nishio
Copy link

nishio commented Nov 20, 2013

In rtclient.RealtimeLoader.prototype.load,
it access to rtclient.params['state'] for handle redirection from Drive UI.

Now Drive UI passes those values via GET parameter,
however, rtclient.getParams checks location.hash only.

I added following code into rtclient.getParams and it works

    var getParam = document.location.search;
    if(getParam){
        getParam = getParam.slice(1);
        getParam.split('&').forEach(function(paramStr){
            paramStr = paramStr.split('=');
            if(paramStr[0] == 'state'){
                params['state'] = decodeURIComponent(paramStr[1]);
            }
        });
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant