Skip to content

Commit

Permalink
[ocd] code style
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Nov 5, 2018
1 parent 7781ad8 commit b15fd4a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,11 @@ var ignore = { hash: 1, query: 1 };
function lolcation(loc) {
var globalVar;

if (typeof window !== 'undefined')
globalVar = window;
else if (typeof global !== 'undefined')
globalVar = global;
else if (typeof self !== 'undefined')
globalVar = self;
else
globalVar = {};
if (typeof window !== 'undefined') globalVar = window;
else if (typeof global !== 'undefined') globalVar = global;
else if (typeof self !== 'undefined') globalVar = self;
else globalVar = {};

var location = globalVar.location || {};
loc = loc || location;

Expand Down

0 comments on commit b15fd4a

Please sign in to comment.