Update default.js

This commit is contained in:
Shadowfacts 2016-09-10 12:10:47 -04:00
parent 5e810468e1
commit aab1235e7f
No known key found for this signature in database
GPG Key ID: F802198A7D7F309D
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
function addStyle(style) {
$("body").after(`<style>${style}</style>`);
let el = $("style#dotjs-style");
if (!el.length) {
$("body").after(`<style id="dotjs-style">${style}</style>`);
} else {
$("style#dotjs-style").append(style);
}
}
function copyToClipBoard(text) {