rotemdan / lzutf8.js

A high-performance Javascript string compression library
MIT License
322 stars 26 forks source link

Remove "innerHtml" from library to avoid linter errors #53

Open Juraj-Masiar opened 4 months ago

Juraj-Masiar commented 4 months ago

When including this library in a Firefox addon, the Firefox linter will generate a warning since "innerHtml" is forbidden in addons: https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML#sect3

What's more, the logger here is never called with appendToDocument set to true, so the "innerHtml" is never actually used: https://github.com/rotemdan/lzutf8.js/blob/e691f5244a51ea8785a083216999756a7feb35c1/src/Globals/Globals.ts#L49