Skip to content

Commit

Permalink
Use insertAdjacentHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Jun 5, 2023
1 parent 3ef2f7c commit 255a37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/process-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function processAll () {
appendSaveAsDialog(i, 'WaveDrom_Display_');
}
// add styles
document.head.innerHTML += '<style type="text/css">div.wavedromMenu{position:fixed;border:solid 1pt#CCCCCC;background-color:white;box-shadow:0px 10px 20px #808080;cursor:default;margin:0px;padding:0px;}div.wavedromMenu>ul{margin:0px;padding:0px;}div.wavedromMenu>ul>li{padding:2px 10px;list-style:none;}div.wavedromMenu>ul>li:hover{background-color:#b5d5ff;}</style>';
document.head.insertAdjacentHTML('beforeend', '<style type="text/css">div.wavedromMenu{position:fixed;border:solid 1pt#CCCCCC;background-color:white;box-shadow:0px 10px 20px #808080;cursor:default;margin:0px;padding:0px;}div.wavedromMenu>ul{margin:0px;padding:0px;}div.wavedromMenu>ul>li{padding:2px 10px;list-style:none;}div.wavedromMenu>ul>li:hover{background-color:#b5d5ff;}</style>');
}

module.exports = processAll;
Expand Down

0 comments on commit 255a37a

Please sign in to comment.