fix: page without head element

This commit is contained in:
wanhose 2020-05-25 23:03:27 +02:00
parent 9c9ac4f4ab
commit fe250de88c

View File

@ -10,6 +10,6 @@ if (!!window.chrome) {
script.setAttribute("type", "module");
// Inject logic script
head.appendChild(script);
(head || document.body).appendChild(script);
};