rip-lang 3.13.88 → 3.13.90

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.13.88",
3
+ "version": "3.13.90",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",
package/src/browser.js CHANGED
@@ -197,12 +197,15 @@ async function processRipScripts() {
197
197
  es.addEventListener('reload', (e) => {
198
198
  if (e.data === 'styles') {
199
199
  const t = Date.now();
200
+ let refreshed = 0;
200
201
  document.querySelectorAll('link[rel="stylesheet"]').forEach(l => {
201
202
  if (new URL(l.href).origin !== location.origin) return;
202
203
  const url = new URL(l.href);
203
204
  url.searchParams.set('_r', t);
204
205
  l.href = url.toString();
206
+ refreshed++;
205
207
  });
208
+ if (!refreshed) location.reload();
206
209
  } else {
207
210
  location.reload();
208
211
  }