Socket
Socket
Sign inDemoInstall

addressbar

Package Overview
Dependencies
3
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc