mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Added CSS support for custom local setup for Safari
This commit is contained in:
parent
e4c9ecc621
commit
723b35bfa6
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ export function getBundledCssLink({appVersion}) {
|
|||
if (process.env.NODE_ENV === 'production' && appVersion) {
|
||||
return `https://unpkg.com/@tryghost/comments-ui@~${appVersion}/umd/main.css`;
|
||||
} else {
|
||||
if (document.currentScript) {
|
||||
// Dynamically determine the current path
|
||||
const url = new URL(document.currentScript.src);
|
||||
return url.origin + '/main.css';
|
||||
}
|
||||
return 'http://localhost:4000/main.css';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue