Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

TypeError: Result of expression 'tab.url' [undefined] is not an object. #21

Open
kgn opened this Issue · 0 comments

1 participant

David Keegan
David Keegan
Owner
kgn commented

I am not sure what is causing this, it is rare though.
Scripts/Bar.js:107

    var tab = safari.self.browserWindow.activeTab;

    //submit story
    if(typeof(json) === 'undefined' || typeof(json.data.children[0]) === 'undefined'){
        //if the url is from imgur try striping off 'i.'
        if(tab.url.indexOf('imgur.com') >= 0){
            imgurUrl = tab.url.match(/http:\/\/i\.(imgur.com.*)/i);
            if(imgurUrl){
                this._updateWithUrl('http://'+imgurUrl[1]);
                return;
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.