We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f67bd commit 8289cddCopy full SHA for 8289cdd
1 file changed
js/config.js
@@ -1,7 +1,11 @@
1
// File: js/config.js
2
3
export function getBaseUrl() {
4
- return (window.location.hostname === 'localhost' ? '' : '/vanillajs-patterns') + '/js';
+ // Only prefix with /vanillajs-patterns when hosted on GitHub Pages
5
+ if (window.location.hostname === 'quantuminformation.github.io') {
6
+ return '/vanillajs-patterns/js';
7
+ }
8
+ return '/js';
9
}
10
11
const config = {
0 commit comments