Skip to content

Commit

Permalink
Relative path
Browse files Browse the repository at this point in the history
Signed-off-by: Anand Krishnamoorthi <[email protected]>
  • Loading branch information
anakrish committed Feb 6, 2024
1 parent dbdc2fb commit 6f76546
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ layout: home
<title>Regorus Playground</title>
<link
rel="stylesheet"
href="{{'style.css'|relative_url}}"
href="/style.css"
/>
</head>
<body>
Expand Down Expand Up @@ -41,11 +41,11 @@ href="{{'style.css'|relative_url}}"
</div>

<script>
var require = { paths: { vs: "{{'node_modules/monaco-editor/min/vs'|relative_url}}" } };
var require = { paths: { vs: "/node_modules/monaco-editor/min/vs" } };
</script>
<script src="{{'node_modules/monaco-editor/min/vs/loader.js'|relative_url}}"></script>
<script src="{{'node_modules/monaco-editor/min/vs/editor/editor.main.nls.js'|relative_url}}"></script>
<script src="{{'node_modules/monaco-editor/min/vs/editor/editor.main.js'|relative_url}}"></script>
<script src="/node_modules/monaco-editor/min/vs/loader.js"></script>
<script src="/node_modules/monaco-editor/min/vs/editor/editor.main.nls.js"></script>
<script src="/node_modules/monaco-editor/min/vs/editor/editor.main.js"></script>

<script type="module">

Expand All @@ -54,7 +54,7 @@ href="{{'style.css'|relative_url}}"
import init, { Engine } from "{{'pkg/regorus.js'|relative_url}}";

function loadFile(filePath) {
filePath = `{{site.baseurl}}${filePath}`
filePath = `/${filePath}`
var result = null;
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", filePath, false);
Expand Down

0 comments on commit 6f76546

Please sign in to comment.