@networkpro/web
Version:
Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies
21 lines (17 loc) • 676 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 src/lib/utils/
* @author SunDevil311
* @updated 2025-05-29
*/
if (location.search.includes('nosw')) {
window.__DISABLE_SW__ = true;
console.warn('🧪 Service worker disabled via ?nosw flag in URL.');
}