@networkpro/web
Version:
Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies
21 lines (17 loc) • 668 B
JavaScript
/* ==========================================================================
static/disableSw.js
Copyright © 2025 Network Pro Strategies (Network Pro™)
SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
This file is part of Network Pro.
========================================================================== */
/**
* @file disableSw.js
* @description Allows for Service Worker to be disabled for debugging by appending ?nosw to the path.
* @module static
* @author Scott Lopez
* @updated 2025-10-05
*/
if (location.search.includes('nosw')) {
window.__DISABLE_SW__ = true;
console.warn('🧪 Service worker disabled via ?nosw flag in URL.');
}