Przeglądaj źródła

needs to be loaded from root

Raanan Weber 5 lat temu
rodzic
commit
43cfdf3209
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Playground/js/monacoCreator.js

+ 1 - 1
Playground/js/monacoCreator.js

@@ -115,7 +115,7 @@ class MonacoCreator {
         this.setupDefinitionWorker(libContent);
 
         // Load code templates
-        response = await fetch("templates.json");
+        response = await fetch("/templates.json");
         if (response.ok) {
             this.templates = await response.json();
         }