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 Oct 6, 2023
1 parent 81e81dc commit 31dbe00
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 279 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 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 _data/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
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.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ 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
552 changes: 276 additions & 276 deletions ui.js

Large diffs are not rendered by default.

0 comments on commit 31dbe00

Please sign in to comment.