Skip to content

Commit

Permalink
Code review for gorhill#23 fix
Browse files Browse the repository at this point in the history
slightly cleaner and safer approach
  • Loading branch information
el1t committed Feb 3, 2017
1 parent d23bca0 commit c8216ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions platform/safari/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ if ( vAPI.sessionId ) {

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;
try {
// https://github.com/el1t/uBlock-Safari/issues/23
self.safari = self.top.safari;
} catch(e) {}
}
safari = self.safari;

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

Expand Down

0 comments on commit c8216ab

Please sign in to comment.