Comparing version 1.0.0 to 1.0.1
@@ -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 @@ ------------------ |
@@ -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": { |
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
21622
2