add the injection module
This commit is contained in:
parent
7c4b4f84bf
commit
c27fe808fe
2 changed files with 14 additions and 0 deletions
14
scripts/GUI/inject.js
Normal file
14
scripts/GUI/inject.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
export default class injection {
|
||||||
|
constructor (parent, element, id, classes, options) {
|
||||||
|
let ELEMENTS = {};
|
||||||
|
|
||||||
|
ELEMENTS[`parents`] = ((typeof parent) != `object`) ? docuent.querySelectorAll(parent) : [...parent];
|
||||||
|
|
||||||
|
// must only run if there are elements to inject
|
||||||
|
if ((ELEMENTS[`parents`]).length > 0) {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
0
scripts/external/inject.js
vendored
0
scripts/external/inject.js
vendored
Loading…
Add table
Add a link
Reference in a new issue