Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/IPv6.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ console.log(_in, _out, _expected, _out === _expected);
*/

// save current IPv6 variable, if any
var _IPv6 = root.IPv6;
var _IPv6 = root && root.IPv6;

function best(address) {
// based on:
Expand Down
2 changes: 1 addition & 1 deletion src/SecondLevelDomains.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"use strict";

// save current SecondLevelDomains variable, if any
var _SecondLevelDomains = root.SecondLevelDomains;
var _SecondLevelDomains = root && root.SecondLevelDomains;

var hasOwn = Object.prototype.hasOwnProperty;
var SLD = {
Expand Down
2 changes: 1 addition & 1 deletion src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"use strict";

// save current URI variable, if any
var _URI = root.URI;
var _URI = root && root.URI;

function URI(url, base) {
// Allow instantiation without the 'new' keyword
Expand Down