New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reload

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reload - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

1.0.1 / 2016-07-15
------------------
Fixed onbeforeunload event not firing in reload-client See: https://github.com/jprichardson/reload/pull/46
1.0.0 / 2016-06-24

@@ -2,0 +6,0 @@ ------------------

4

lib/reload-client.js

@@ -20,3 +20,3 @@ (function refresh () {

// The navigatedAwayFromPageFlag is set to true in the event handler onbeforeunload because we want to short-circuit reload to prevent it from causing the page to reload before the navigation occurs.
var navigatedAwayFromPageFlag = false
var navigatedAwayFromPageFlag

@@ -32,3 +32,3 @@ // Wait until the page loads for the first time and then call the webSocketWaiter function so that we can connect the socket for the first time

// If the user navigates away from the page, we want to short-circuit reload to prevent it from causing the page to reload before the navigation occurs.
window.addEventListener('onbeforeunload', function () {
window.addEventListener('beforeunload', function () {
if (verboseLogging === true) {

@@ -35,0 +35,0 @@ console.log('Navigated away from the current URL')

{
"name": "reload",
"version": "1.0.0",
"version": "1.0.1",
"description": "Node.js module to refresh and reload your code in your browser when your code changes. No browser plugins required.",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc