ruffle: update to ruffle 2023-05-13 release, later versions interfere… (#181)
* ruffle: - switch to ruffle 2023-05-13 release, later versions interfere with loading, it seems (see #180) fixes #180 * add ruffle toggling options - disable by default in embed mode, can be enabled with 'useruffle' attr - enable by default in standalone, can be disabled with 'skipruffle' attr - fixes #182 * update CHANGES for 1.8.1
This commit is contained in:
@@ -43,6 +43,7 @@ class Embed extends LitElement
|
||||
this.noSandbox = null;
|
||||
this.logo = rwpLogo;
|
||||
this.loading = "";
|
||||
this.useRuffle = false;
|
||||
}
|
||||
|
||||
static setDefaultReplayFile(replayfile) {
|
||||
@@ -88,6 +89,8 @@ class Embed extends LitElement
|
||||
requireSubdomainIframe: {type: Boolean},
|
||||
|
||||
loading: { type: String },
|
||||
|
||||
useRuffle: { type: Boolean },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -252,6 +255,10 @@ class Embed extends LitElement
|
||||
params.swName = this.swName;
|
||||
}
|
||||
|
||||
if (this.useRuffle) {
|
||||
params.ruffle = "1";
|
||||
}
|
||||
|
||||
this.paramString = new URLSearchParams(params).toString();
|
||||
|
||||
this.hashString = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user