Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.
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

@nishio

Description

@nishio

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]);
            }
        });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions