Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp <[email protected]>
  • Loading branch information
Kiuryy committed Jul 23, 2022
1 parent 095a878 commit afc71a6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
return Func.measureTime((resolve) => {
Func.concat( // concat extension javascripts
[
path.src + "js/webcomponents-bundle.js",
path.src + "js/helper/**/*.js",
path.src + "js/extension.js"
],
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,16 @@
"devDependencies": {
"concat": "^1.0.3",
"create-file": "^1.0.1",
"del": "^6.1.1",
"eslint": "^8.17.0",
"eslint": "^8.20.0",
"fs-extra": "^10.1.0",
"glob-concat": "^1.0.2",
"html-minifier": "^4.0.0",
"jsonminify": "^0.4.2",
"node-sass": "^7.0.1",
"npm-check-updates": "^13.1.1",
"npm-check-updates": "^16.0.0",
"read-file": "^0.2.0",
"request": "^2.88.2",
"terser": "^5.14.0",
"terser": "^5.14.2",
"zip-dir": "^2.0.0"
}
}
24 changes: 13 additions & 11 deletions src/js/lib/jsu.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,20 @@
}

s.forEach((entry) => {
const eachCallback = (node) => {
if (this[nodes].indexOf(node) === -1) {
this[nodes].push(node);
}
};
if (entry !== null) {
const eachCallback = (node) => {
if (this[nodes].indexOf(node) === -1) {
this[nodes].push(node);
}
};

if (entry instanceof jsuNode) {
entry.forEach(eachCallback);
} else if (Array.isArray(entry) || entry instanceof NodeList || entry instanceof HTMLCollection || /^\[object (HTMLCollection|NodeList|Object)\]$/.test(entry.toString())) {
jsuNode._forEach(entry, eachCallback);
} else {
this[nodes].push(entry);
if (entry instanceof jsuNode) {
entry.forEach(eachCallback);
} else if (Array.isArray(entry) || entry instanceof NodeList || entry instanceof HTMLCollection || /^\[object (HTMLCollection|NodeList|Object)\]$/.test(entry.toString())) {
jsuNode._forEach(entry, eachCallback);
} else {
this[nodes].push(entry);
}
}
});

Expand Down
1 change: 1 addition & 0 deletions src/js/webcomponents-bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"default_locale": "en",
"version": "0.0.1",
"version_name": "Dev",
"minimum_chrome_version": "97",
"minimum_chrome_version": "98",
"homepage_url": "https://extensions.redeviation.com/",
"background": {
"scripts": [
Expand Down

0 comments on commit afc71a6

Please sign in to comment.