Skip to content

Commit

Permalink
updates to zephr.js. Updated way that the base URL is handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
RPDevJesco committed Aug 18, 2024
1 parent c75cdce commit 57bfc7a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zephyrtemplates/ZephyrCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ export function setTheme(themeName) {
}
}

export function setBaseURL(url) {
ZephyrJS.baseUrl = url.endsWith('/') ? url : url + '/';
}

// Expose setTheme to the global scope
window.Themes = Themes;
window.setTheme = setTheme;
window.setBaseURL = setBaseURL;
window.setBaseURL = ZephyrJS.setBaseURL;

import BasicCard from "../zephyrtemplates/BasicCard.js";
import LayeredCard from "../zephyrtemplates/LayeredCard.js";
Expand Down

0 comments on commit 57bfc7a

Please sign in to comment.