Browse Source

needs to be loaded from root

Raanan Weber 5 năm trước cách đây
mục cha
commit
43cfdf3209
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
         }