Merge pull request #14 from kckarnige/main

Made it easier to change the version var
This commit is contained in:
smartfridge 2021-05-10 09:50:11 +02:00 committed by GitHub
commit 621836da5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
exports.Version = require("../package.json").version;
exports.addStyle = function (styleString) {
const style = document.createElement("style");
exports.addStyle = function(styleString) {
const style = document.createElement('style');
style.textContent = styleString;
document.head.append(style);
};