Make module definitions consistent
This commit is contained in:
parent
ca3f9970a9
commit
89870edaaf
@ -95,7 +95,8 @@ const calculateStickyPosition = (s) => {
|
||||
}
|
||||
}
|
||||
|
||||
export function init(p = document){
|
||||
module.exports = {
|
||||
init: (p = document) => {
|
||||
font.size = parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px",""));
|
||||
|
||||
p.querySelectorAll("sticky-note").forEach((s) => {
|
||||
@ -129,3 +130,4 @@ export function init(p = document){
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -31,7 +31,8 @@ const waitForElement = (selector) => {
|
||||
}
|
||||
|
||||
|
||||
export function init(container = document, spacer = true, args = {}) {
|
||||
module.exports = {
|
||||
init: (container = document, spacer = true, args = {}) => {
|
||||
|
||||
container.querySelectorAll(".tab-group, tabset").forEach(tabGroup => {
|
||||
|
||||
@ -104,3 +105,4 @@ export function init(container = document, spacer = true, args = {}) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user