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,9 +1,9 @@
exports.Version = require("../package.json").version; exports.Version = require("../package.json").version;
exports.addStyle = function (styleString) { exports.addStyle = function(styleString) {
const style = document.createElement("style"); const style = document.createElement('style');
style.textContent = styleString; style.textContent = styleString;
document.head.append(style); document.head.append(style);
}; };
exports.addScript = function (scriptString) { exports.addScript = function (scriptString) {