forked from SpoTUI/SpoTUI
fix(theme): Add cache busting for theme list
This commit is contained in:
@@ -1419,7 +1419,7 @@ async function openThemePanel() {
|
|||||||
panel.innerHTML = "<p>Loading themes...</p>";
|
panel.innerHTML = "<p>Loading themes...</p>";
|
||||||
|
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.src = `${THEME_HOST}themes.js`;
|
script.src = `${THEME_HOST}themes.js?_=${Math.floor(Date.now() / 1000)}`;
|
||||||
|
|
||||||
script.onload = () => {
|
script.onload = () => {
|
||||||
const themes = window.spotuiThemes || [];
|
const themes = window.spotuiThemes || [];
|
||||||
|
|||||||
Reference in New Issue
Block a user