diff --git a/views/includes/scripts/clipboard.html b/views/includes/scripts/clipboard.html index 5e0a17416..29c47f340 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 (headers.toSource() != "({})") ? headers : undefined; + return (JSON.stringify(headers) != "({})") ? headers : undefined; } // NOTE: Keep in sync with helpers.js