public/javascript/libs/oauth.js
function correctTimestampFromSrc(parameterName) {
        parameterName = parameterName || "oauth_timestamp";
        var scripts = document.getElementsByTagName('script');
        if (scripts == null || !scripts.length) return;
        var src = scripts[scripts.length-1].src;
        if (!src) return;
        var q = src.indexOf("?");
        if (q < 0) return;
        parameters = OAuth.getParameterMap(OAuth.decodeForm(src.substring(q+1)));
        var t = parameters[parameterName];
        if (t == null) return;
        OAuth.correctTimestamp(t);
    }
function correctTimestampFromSrc(parameterName) {
        parameterName = parameterName || "oauth_timestamp";
        var scripts = document.getElementsByTagName('script');
        if (scripts == null || !scripts.length) return;
        var src = scripts[scripts.length-1].src;
        if (!src) return;
        var q = src.indexOf("?");
        if (q < 0) return;
        parameters = OAuth.getParameterMap(OAuth.decodeForm(src.substring(q+1)));
        var t = parameters[parameterName];
        if (t == null) return;
        OAuth.correctTimestamp(t);
    }
function correctTimestampFromSrc ( parameterName ) { parameterName = parameterName || "oauth_timestamp" ; var scripts = document . getElementsByTagName ( 'script' ) ; if ( scripts == null || ! scripts . length ) return ; var src = scripts [ scripts . length - 1 ] . src ; if ( ! src ) return ; var q = src . indexOf ( "?" ) ; if ( q < 0 ) return ; parameters = OAuth . getParameterMap ( OAuth . decodeForm ( src . substring ( q + 1 ) ) ) ; var t = parameters [ parameterName ] ; if ( t == null ) return ; OAuth . correctTimestamp ( t ) ; }
Correct the time using a parameter from the URL from which the last script was loaded.
Correct the time using a parameter from the URL from which the last script was loaded .