Skip to content

Commit

Permalink
Fixes gorhill#23
Browse files Browse the repository at this point in the history
  • Loading branch information
el1t committed Jan 28, 2017
1 parent aa764c4 commit 3d92053
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions platform/safari/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,21 @@ if ( /^image\/|^text\/plain/.test(contentType) ) {

var vAPI = self.vAPI = self.vAPI || {};

// https://github.com/chrisaljoudi/uBlock/issues/456
// Already injected?
if ( vAPI.sessionId ) {
return;
}

var safari;
if ( typeof self.safari === 'undefined' ) {
safari = self.top.safari;
// https://github.com/el1t/uBlock-Safari/issues/23
self.safari = safari;
} else {
safari = self.safari;
}

// https://github.com/chrisaljoudi/uBlock/issues/456
// Already injected?
if ( vAPI.sessionId ) {
return;
}

/******************************************************************************/

vAPI.randomToken = function() {
Expand Down

0 comments on commit 3d92053

Please sign in to comment.