fluxy-bot 0.5.15 → 0.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-fluxy/fluxy.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div id="root"></div>
|
|
13
13
|
<script>
|
|
14
14
|
if('serviceWorker' in navigator){
|
|
15
|
-
navigator.serviceWorker.register('/sw.js'
|
|
15
|
+
navigator.serviceWorker.register('/fluxy/sw.js').then(function(r){
|
|
16
16
|
r.update();
|
|
17
17
|
if(r.waiting){r.waiting.postMessage({type:'SKIP_WAITING'})}
|
|
18
18
|
r.addEventListener('updatefound',function(){
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script type="module" src="/fluxy-main.tsx"></script>
|
|
11
11
|
<script>
|
|
12
12
|
if('serviceWorker' in navigator){
|
|
13
|
-
navigator.serviceWorker.register('/sw.js'
|
|
13
|
+
navigator.serviceWorker.register('/fluxy/sw.js').then(function(r){
|
|
14
14
|
r.update();
|
|
15
15
|
if(r.waiting){r.waiting.postMessage({type:'SKIP_WAITING'})}
|
|
16
16
|
r.addEventListener('updatefound',function(){
|
package/supervisor/index.ts
CHANGED
|
@@ -171,7 +171,7 @@ export async function startSupervisor() {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
// Service worker — served directly with no-cache to ensure push handler updates
|
|
174
|
-
if (req.url === '/sw.js') {
|
|
174
|
+
if (req.url === '/sw.js' || req.url === '/fluxy/sw.js') {
|
|
175
175
|
const swPath = path.join(PKG_DIR, 'workspace', 'client', 'public', 'sw.js');
|
|
176
176
|
res.writeHead(200, { 'Content-Type': 'application/javascript', 'Cache-Control': 'no-cache' });
|
|
177
177
|
res.end(fs.readFileSync(swPath));
|