Skip to content

Commit

Permalink
fix: ensure default index.html is served for app, only serve wabac.js…
Browse files Browse the repository at this point in the history
… index page when in embed mode, fixes #251 (#253)

bump to 1.8.13
  • Loading branch information
ikreymer authored and emma-sg committed Nov 29, 2023
1 parent 5a36b32 commit c7b2fd7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down
4 changes: 3 additions & 1 deletion src/appmain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7b2fd7

Please sign in to comment.