diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 14a0ba8d..303657bc 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -57,6 +57,19 @@ function debounce(fn, delay) { }; } +function setStylesheetVersion(text, version) { + const regex = /]*)>/; + const match = text.match(regex); + if (!match) return text; + let attrs = match[1]; + if (/version=['"][^'"]*['"]/.test(attrs)) { + attrs = attrs.replace(/version=['"][^'"]*['"]/, `version="${version}"`); + } else { + attrs += ` version="${version}"`; + } + return text.replace(regex, ``); +} + const goPro = import.meta.env.VITE_GO_PRO === "true"; function defaultTab() { @@ -351,55 +364,57 @@ export default function App() {
- + > + 📥 + +