embeds: tweak no service-worker error message, update to latest wabac/sw

This commit is contained in:
Ilya Kreymer
2020-07-23 08:35:39 -07:00
parent 05b2e96ca5
commit 8737319b5b
4 changed files with 41 additions and 35 deletions
+6 -3
View File
@@ -142,7 +142,9 @@ class Embed extends LitElement
white-space: pre-wrap; white-space: pre-wrap;
text-align: center; text-align: center;
} }
.full-width {
width: 100%;
}
iframe { iframe {
width: 100%; width: 100%;
height: 100%; height: 100%;
@@ -164,13 +166,14 @@ class Embed extends LitElement
` : html``} ` : html``}
${this.noSW ? html` ${this.noSW ? html`
<section class=""> <section class="full-width">
<div class="has-text-centered"> <div class="has-text-centered">
<fa-icon class="logo" id="wrlogo" size="2.5rem" .svg=${rwpLogo}></fa-icon> <fa-icon class="logo" id="wrlogo" size="2.5rem" .svg=${rwpLogo}></fa-icon>
</div> </div>
<div class="error"> <div class="error">
Sorry, ReplayWeb.page won't work in this browser as Service Workers are not supported. Sorry, ReplayWeb.page won't work in this browser as Service Workers are not supported.
Please try a different browser. (If Using Private Mode in Firefox, try regular mode). Please try a different browser.\n
(Service Workers are disabled in Firefox in Private Mode. If Using Private Mode in Firefox, try regular mode).
</div> </div>
</section> </section>
`: ``}`; `: ``}`;
+15 -15
View File
File diff suppressed because one or more lines are too long
+18 -15
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -292,8 +292,8 @@
"@xtuc/long" "4.2.2" "@xtuc/long" "4.2.2"
"@webrecorder/wabac@github:webrecorder/wabac.js": "@webrecorder/wabac@github:webrecorder/wabac.js":
version "2.0.3-dev.0" version "2.0.3"
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/9f2faa5c6c3d1d62e542485aba65679da6acc741" resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/39c73bd44a0d0659d0438cb10a29f46c2d58a671"
dependencies: dependencies:
brotli "github:foliojs/brotli.js" brotli "github:foliojs/brotli.js"
fast-xml-parser "^3.15.1" fast-xml-parser "^3.15.1"