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
1 changed files with 4 additions and 4 deletions

View File

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