Browse Source

fix: main.js call fixed for new docfx version

Vaclav Elias 2 years ago
parent
commit
3c8b0d2426
1 changed files with 2 additions and 5 deletions
  1. 2 5
      en/template/public/main.js

+ 2 - 5
en/template/public/main.js

@@ -237,15 +237,12 @@ const app = {
     },
     start: function () {
 
-        // Call the function to start waiting for the navbar element
         this.waitForNavbarAndAddLanguageNavigation();
-
         this.addVersionNavigation();
         this.loadVersions();
     }
 };
 
-export default app;
+app.start = app.start.bind(app);
 
-// Start the app when the DOM content is loaded
-document.addEventListener("DOMContentLoaded", () => app.start());
+export default app;