diff --git a/apps/issues/tf-utils.js b/apps/issues/tf-utils.js index d871f02e..e6544432 100644 --- a/apps/issues/tf-utils.js +++ b/apps/issues/tf-utils.js @@ -2,7 +2,7 @@ import * as linkify from './commonmark-linkify.js'; var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i; var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i; -var potentiallyUnsafe = function(url) { +var potentiallyUnsafe = function (url) { return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url); }; diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index d7baace8..a0bc4e79 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -97,7 +97,7 @@ class TfTabConnectionsElement extends LitElement { this.connect_attempt != connection} style="cursor: pointer" class=${'w3-panel ' + (this.connect_success ? 'w3-green' : 'w3-red')} - @click=${() => this.connect_attempt = undefined} + @click=${() => (this.connect_attempt = undefined)} >
${this.connect_message}
`; diff --git a/apps/ssb/tf-utils.js b/apps/ssb/tf-utils.js index 65340824..63eda668 100644 --- a/apps/ssb/tf-utils.js +++ b/apps/ssb/tf-utils.js @@ -4,7 +4,7 @@ const k_code_classes = 'w3-theme-l4 w3-theme-border w3-round'; var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i; var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i; -var potentiallyUnsafe = function(url) { +var potentiallyUnsafe = function (url) { return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url); }; diff --git a/core/client.js b/core/client.js index 0abb8411..4ada2236 100644 --- a/core/client.js +++ b/core/client.js @@ -162,7 +162,10 @@ class TfNavigationElement extends LitElement { class="w3-dropdown-content w3-bar-block w3-card-4" style="max-width: 100%; right: 0" > - +