From 9dc4716a41cfefb360dbb016fc3c566ebe9ca199 Mon Sep 17 00:00:00 2001 From: Jeremy Likness Date: Wed, 29 Jan 2020 14:03:43 -0800 Subject: [PATCH] Further fixes for relative directory --- .github/workflows/main.yml | 2 +- js/controls.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f7070e..fd5b985 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: - name: Fix Base URL run: | sed -i "s/base href=\"\/\"/base href=\"\/vanillajs\/\"/g" ${{ env.OUTPUT_PATH }}index.html - sed -i "s/scope: \'\/\'/scope: \'\/vanillajs\/\'/g" ${{ env.OUTPUT_PATH }}index.html + sed -i "s/scope: '\/'/scope: '\/vanillajs\/'/g" ${{ env.OUTPUT_PATH }}index.html - name: Deploy to Azure Storage run: az storage blob upload-batch --source ${{ env.OUTPUT_PATH }} --destination \$web/vanillajs --account-name ${STORAGE_NAME} diff --git a/js/controls.js b/js/controls.js index e4f7304..58e3308 100644 --- a/js/controls.js +++ b/js/controls.js @@ -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");