addressbar
Advanced tools
Comparing version 1.0.0 to 1.0.1
17
index.js
@@ -67,3 +67,16 @@ /* global history */ | ||
global.addEventListener('popstate', onUrlChange('pop')) | ||
// this hack resolves issue with safari | ||
// see issue from Page JS for reference https://github.com/visionmedia/page.js/issues/213 | ||
// see also https://github.com/visionmedia/page.js/pull/240 | ||
if (document.readyState !== 'complete') { | ||
// load event has not fired | ||
global.addEventListener('load', function () { | ||
setTimeout(function () { | ||
global.addEventListener('popstate', onUrlChange('pop'), false) | ||
}, 0) | ||
}, false) | ||
} else { | ||
// load event has fired | ||
global.addEventListener('popstate', onUrlChange('pop'), false) | ||
} | ||
@@ -152,3 +165,3 @@ Object.defineProperty(eventEmitter, 'value', { | ||
kinds of scenarios with hyperlinks, thanks! | ||
*/ | ||
*/ | ||
@@ -155,0 +168,0 @@ var isSameOrigin = function (href) { |
{ | ||
"name": "addressbar", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Makes the addressbar of the browser work just like a normal input", | ||
@@ -35,2 +35,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"commitizen": "^2.5.0", | ||
"cz-customizable": "^2.7.0", | ||
"ghooks": "^1.0.3", | ||
"nodeunit": "^0.9.1", | ||
@@ -40,2 +43,3 @@ "selenium-webdriver": "^2.46.1", | ||
"standard": "^5.4.1", | ||
"validate-commit-msg": "^1.0.0", | ||
"webpack": "^1.12.1" | ||
@@ -42,0 +46,0 @@ }, |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
53062
493
0
9