From aace091886cb706119b39a4e5b47aad8f5f5f391 Mon Sep 17 00:00:00 2001 From: Martii Date: Sun, 21 Nov 2021 00:04:24 -0700 Subject: [PATCH] Clear out some junk * toSource added parens JSON.stringify does not Post #1847 --- views/includes/scripts/clipboard.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/views/includes/scripts/clipboard.html b/views/includes/scripts/clipboard.html index 29c47f340..76beb1d3f 100644 --- a/views/includes/scripts/clipboard.html +++ b/views/includes/scripts/clipboard.html @@ -73,7 +73,7 @@ if (headers["license"]) headers["licence"] = headers["license"]; - return (JSON.stringify(headers) != "({})") ? headers : undefined; + return (JSON.stringify(headers) != "{}") ? headers : undefined; } // NOTE: Keep in sync with helpers.js @@ -124,10 +124,6 @@ if (headerContent) { block = parseMeta(headerContent); - // WARNING: Lines after this don't work in Fx or Chromium atm on return on dev but does in SM - // Function is exited with debugging however nothing happens afterwards. Also tried moving - // parseMeta into local funcion scope with no difference. - if (block['name']) { names = block['name'].reverse(); name = cleanFilename(names[0]);