Gk0Wk / TiddlySeq

Logseq-like tiddlywiki5 template plugin.
https://gk0wk.github.io/TiddlySeq
MIT License
34 stars 8 forks source link

[Violation] Avoid using document.write() #11

Open linonetwo opened 1 year ago

linonetwo commented 1 year ago

$:/plugins/Gk0Wk/minelixir/widget.js:32
[Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
  | addIcon | @ | $:/plugins/Gk0Wk/min…elixir/widget.js:32 -- | -- | -- | --   | eval | @ | $:/plugins/Gk0Wk/min…elixir/widget.js:32   | eval | @ | $:/plugins/Gk0Wk/min…elixir/widget.js:49   | $tw.utils.evalGlobal | @ | $:/boot/boot.js:617   | $tw.modules.execute | @ | $:/boot/boot.js:905   | (anonymous) | @ | $:/boot/boot.js:945   | $tw.utils.each | @ | $:/boot/boot.js:155   | $tw.modules.forEachModuleOfType | @ | $:/boot/boot.js:944   | $tw.modules.applyMethods | @ | $:/boot/boot.js:968   | Widget.initialise | @ | $:/core/modules/widgets/widget.js:55   | Widget | @ | $:/core/modules/widgets/widget.js:30   | exports.startup | @ | $:/core/modules/startup.js:60   | $tw.boot.executeNextStartupTask | @ | $:/boot/boot.js:2580   | $tw.boot.executeNextStartupTask | @ | $:/boot/boot.js:2584   | $tw.boot.executeNextStartupTask | @ | $:/boot/boot.js:2584   | $tw.boot.executeNextStartupTask | @ | $:/boot/boot.js:2584   | $tw.boot.execStartup | @ | $:/boot/boot.js:2527   | $tw.boot.startup | @ | $:/boot/boot.js:2537   | (anonymous) | @ | $:/boot/boot.js:2703   | $tw.boot.decryptEncryptedTiddlers | @ | $:/boot/boot.js:1763   | $tw.boot.boot | @ | $:/boot/boot.js:2701   | _boot | @ | $:/boot/boot.js:2710   | (anonymous) | @ | $:/boot/boot.js:2720   | executeScriptsAfterStreamChunksToWebView | @ | VM3:101   | (anonymous) | @ | VM3:50
linonetwo commented 1 year ago

this seem to delete the whole window.document.body