refactor some of the documentation about samples

This commit is contained in:
2023-11-18 18:47:04 +01:00
parent 9a6d6b914f
commit 9161d6f9ee
10 changed files with 247 additions and 96 deletions

View File

@ -159,8 +159,9 @@ export class Editor {
let pre_loading = async () => {
await loadSamples();
};
pre_loading();
this.docs = documentation_factory(this);
pre_loading().then(() => {
this.docs = documentation_factory(this);
});
// ================================================================================
// Application event listeners
@ -484,7 +485,7 @@ export class Editor {
console.log("Hydra loaded successfully");
this.initializeHydra();
};
script.onerror = function () {
script.onerror = function() {
console.error("Error loading Hydra script");
};
document.head.appendChild(script);