add initialOnStartup
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
function createRequiredProgress({ container, progress, onChange }) {
|
function createRequiredProgress({ container, initOnStartup = true, progress, onChange }) {
|
||||||
let total = 0;
|
let total = 0;
|
||||||
let filled = 0;
|
let filled = 0;
|
||||||
|
|
||||||
@@ -76,7 +76,9 @@ function createRequiredProgress({ container, progress, onChange }) {
|
|||||||
attributeFilter: ['style', 'class', 'hidden']
|
attributeFilter: ['style', 'class', 'hidden']
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(initOnStartup) {
|
||||||
initialize();
|
initialize();
|
||||||
|
}
|
||||||
|
|
||||||
// Optional: API zurückgeben
|
// Optional: API zurückgeben
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user