update to latest wabac.js -- fix reading small wacz files

embed fixes: fix 'replayonly' mode to hide locationbar
embed loading screen: simplify, don't show cancel button, filename
bump to electron 10.0.0
bump to beta.1
This commit is contained in:
Ilya Kreymer
2020-08-24 23:09:18 -07:00
parent 33cc6b2082
commit a330c2c5c2
8 changed files with 55 additions and 33 deletions
+5 -5
View File
@@ -13,7 +13,7 @@ class Embed extends LitElement
{
constructor() {
super();
this.replayBase = window.location.origin + "/replay/";
this.replaybase = window.location.origin + "/replay/";
this.swName = __SW_NAME__;
this.view = "replay";
this.ts = "";
@@ -37,7 +37,7 @@ class Embed extends LitElement
view: { type: String },
embed: { type: String },
replayBase: { type: String },
replaybase: { type: String },
swName: { type: String },
title: { type: String },
@@ -57,7 +57,7 @@ class Embed extends LitElement
async doRegister() {
try {
await registerSW(this.swName, this.replayBase);
await registerSW(this.swName, this.replaybase);
console.log("done");
this.swInited = true;
} catch (e) {
@@ -119,7 +119,7 @@ class Embed extends LitElement
changedProperties.has("source")) {
if (this.embed === null) {
this.embed = this.url ? "replay" : "full";
this.embed = "full";
}
this.paramString = new URLSearchParams({
@@ -169,7 +169,7 @@ class Embed extends LitElement
render() {
return html`
${this.paramString && this.hashString && this.swInited ? html`
<iframe @load="${this.onLoad}" src="${this.replayBase}?${this.paramString}#${this.hashString}" allow="autoplay *; fullscreen"></iframe>
<iframe sandbox="allow-downloads allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-scripts allow-same-origin" @load="${this.onLoad}" src="${this.replaybase}?${this.paramString}#${this.hashString}" allow="autoplay *; fullscreen"></iframe>
` : html``}
${this.noSW ? html`