error fix + embedding extensability (#110)
* embed mode: make embedding options more extensible ui: unify service worker not available errors, show same error in standard/embed mode, including when loaded over http - more customizations for extended embed, allow hiding 'browse contents' button - simplify title updates - make error page / icon more customizable - autoupdating in editable mode: don't update if previous one didn't finish, make customizable, don't autoupdate at all over >=100 pages * dependencies: update ruffle to 2022-07-02 * bump to 1.6.1, update CHANGELIST
This commit is contained in:
+4
-2
@@ -138,12 +138,14 @@ class WrModal extends LitElement
|
||||
super();
|
||||
this.title = "";
|
||||
this.bgClass = "";
|
||||
this.noBgClose = false;
|
||||
}
|
||||
|
||||
static get properties() {
|
||||
return {
|
||||
title: { type: String },
|
||||
bgClass: { type: String }
|
||||
bgClass: { type: String },
|
||||
noBgClose: { type: Boolean }
|
||||
};
|
||||
}
|
||||
|
||||
@@ -167,7 +169,7 @@ class WrModal extends LitElement
|
||||
render() {
|
||||
return html`
|
||||
<div class="modal is-active">
|
||||
<div class="modal-background" @click="${this.onClose}"></div>
|
||||
<div class="modal-background" @click="${() => !this.noBgClose && this.onClose()}"></div>
|
||||
<div class="modal-card">
|
||||
<header class="modal-card-head ${this.bgClass}">
|
||||
<p class="modal-card-title is-3">${this.title}</p>
|
||||
|
||||
Reference in New Issue
Block a user