@nuxt/vue-app
Advanced tools
Comparing version 2.17.4 to 2.18.0
/*! | ||
* @nuxt/vue-app v2.17.4 (c) 2016-2024 | ||
* @nuxt/vue-app v2.18.0 (c) 2016-2024 | ||
* Released under the MIT License | ||
@@ -4,0 +4,0 @@ * Repository: https://github.com/nuxt/nuxt.js |
{ | ||
"name": "@nuxt/vue-app", | ||
"version": "2.17.4", | ||
"version": "2.18.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -160,8 +160,11 @@ import Vue from 'vue' | ||
const timeNow = Date.now() | ||
const previousReloadTime = parseInt(window.sessionStorage.getItem('nuxt-reload')) | ||
// check for previous reload time not to reload infinitely | ||
if (!previousReloadTime || previousReloadTime + 60000 < timeNow) { | ||
window.sessionStorage.setItem('nuxt-reload', timeNow) | ||
window.location.reload(true /* skip cache */) | ||
try { | ||
const previousReloadTime = parseInt(window.sessionStorage.getItem('nuxt-reload')) | ||
// check for previous reload time not to reload infinitely | ||
if (!previousReloadTime || previousReloadTime + 60000 < timeNow) { | ||
window.sessionStorage.setItem('nuxt-reload', timeNow) | ||
window.location.reload(true /* skip cache */) | ||
} | ||
} catch { | ||
// don't throw an error if we have issues reading sessionStorage | ||
} | ||
@@ -168,0 +171,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173858
3745