Spaces:
Sleeping
Sleeping
Update proxy/templates/index.html
Browse files
proxy/templates/index.html
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
</div>
|
| 50 |
|
| 51 |
<!-- Embedded ConlluEditor -->
|
| 52 |
-
<iframe id="editorFrame" src="/editor"></iframe>
|
| 53 |
|
| 54 |
<script>
|
| 55 |
const dropzone = document.getElementById("dropzone");
|
|
@@ -120,7 +120,7 @@
|
|
| 120 |
if (!f) return;
|
| 121 |
// Assuming ConlluEditor can take a filename via query or internal logic.
|
| 122 |
// If not, you’ll adapt this to whatever mechanism it uses.
|
| 123 |
-
editorFrame.src = "/editor
|
| 124 |
});
|
| 125 |
|
| 126 |
downloadBtn.addEventListener("click", () => {
|
|
|
|
| 49 |
</div>
|
| 50 |
|
| 51 |
<!-- Embedded ConlluEditor -->
|
| 52 |
+
<iframe id="editorFrame" src="/editor/"></iframe>
|
| 53 |
|
| 54 |
<script>
|
| 55 |
const dropzone = document.getElementById("dropzone");
|
|
|
|
| 120 |
if (!f) return;
|
| 121 |
// Assuming ConlluEditor can take a filename via query or internal logic.
|
| 122 |
// If not, you’ll adapt this to whatever mechanism it uses.
|
| 123 |
+
editorFrame.src = "/editor/?file=" + encodeURIComponent(f);
|
| 124 |
});
|
| 125 |
|
| 126 |
downloadBtn.addEventListener("click", () => {
|