mirror of
https://github.com/JeremyLikness/vanillajs-deck
synced 2024-12-04 03:07:40 +00:00
Further fixes for relative directory
This commit is contained in:
parent
bd4ee99396
commit
9dc4716a41
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -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}
|
||||
|
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");
|
||||
|
Loading…
Reference in New Issue
Block a user