From c7b2fd74fb2b98c1400e2c869d23b16812fe57f8 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 6 Oct 2023 14:30:42 -0700 Subject: [PATCH] fix: ensure default index.html is served for app, only serve wabac.js index page when in embed mode, fixes #251 (#253) bump to 1.8.13 --- CHANGES.md | 3 +++ package.json | 2 +- src/appmain.ts | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index d78ae7d5..c9351a68 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,9 @@ ## CHANGES +v1.8.13 +- Loading: Ensure default index.html is served when not in embed mode, don't add '?serveIndex=1' for app itself + v1.8.12 - Loading: Fixes embed 'Purge Cache + Reload', ensure '?serveIndex=1' is always set on all service worker loading diff --git a/package.json b/package.json index 70416159..85a824f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "replaywebpage", "productName": "ReplayWeb.page", - "version": "1.8.12", + "version": "1.8.13", "description": "Serverless Web Archive Replay", "repository": "https://github.com/webrecorder/replayweb.page", "homepage": "https://replayweb.page/", diff --git a/src/appmain.ts b/src/appmain.ts index d8a6ba44..7c88e7d5 100644 --- a/src/appmain.ts +++ b/src/appmain.ts @@ -447,7 +447,9 @@ export class ReplayWebApp extends LitElement { if (this.useRuffle) { qp.set("injectScripts", "ruffle/ruffle.js"); } - qp.set("serveIndex", "1"); + if (this.embed) { + qp.set("serveIndex", "1"); + } query = qp.toString(); if (query.length) { name += "?" + query;