1 parent dd22312 commit b803461Copy full SHA for b803461
2 files changed
simulator/index.html
@@ -166,8 +166,8 @@
166
-->
167
<template id="bootstrap-mpy">
168
import sys
169
-
170
-MIP_INDEX = "https://PyDevices.github.io/mip"
+from js import window
+MIP_INDEX = window.location.origin + "/mip/" if window.location.hostname in ("127.0.0.1", "localhost") else "https://PyDevices.github.io/mip"
171
172
173
def _refresh_environment():
simulator/sw.js
@@ -1,7 +1,7 @@
1
// SPDX-License-Identifier: MIT
2
// PyDevices Simulator PWA Service Worker with Cross-Origin Isolation (COI) support.
3
4
-const CACHE_NAME = "pydevices-simulator-v1";
+const CACHE_NAME = "pydevices-simulator-v2";
5
6
const PRECACHE_ASSETS = [
7
"./",
0 commit comments