Skip to content

Commit

Permalink
Clear out some junk
Browse files Browse the repository at this point in the history
* toSource added parens JSON.stringify does not

Post OpenUserJS#1847
  • Loading branch information
Martii committed Nov 21, 2021
1 parent 936214c commit aace091
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions views/includes/scripts/clipboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit aace091

Please sign in to comment.