diff --git a/icons/index.js b/icons/index.js index 5b02db3..0f6fdd1 100644 --- a/icons/index.js +++ b/icons/index.js @@ -1,5 +1,5 @@ -setTimeout(()=>{ - if (typeof SurveyCreatorCore !== "undefined") { +Survey.SvgRegistry.registerIcons(SurveyIcons.icons); +if (typeof SurveyCreatorCore !== "undefined") { new SurveyCreatorCore.SurveyCreatorModel({}); // Register Survey Creator icons } @@ -23,4 +23,3 @@ setTimeout(()=>{ icon-` + name + ``; document.getElementById("icons").appendChild(element); }); -}, 5000);