mirror of
https://github.com/JeremyLikness/vanillajs-deck
synced 2025-12-15 10:43:34 +00:00
Further fixes for relative directory
This commit is contained in:
2
js/controls.js
vendored
2
js/controls.js
vendored
@@ -38,7 +38,7 @@ export class Controls extends HTMLElement {
|
||||
* Called when the element is inserted into the DOM. Used to fetch the template and wire into the related Navigator instance.
|
||||
*/
|
||||
async connectedCallback() {
|
||||
const response = await fetch("/templates/controls.html");
|
||||
const response = await fetch("./templates/controls.html");
|
||||
const template = await response.text();
|
||||
this.innerHTML = "";
|
||||
const host = document.createElement("div");
|
||||
|
||||
Reference in New Issue
Block a user