Fix customCSS refresh
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" id="favicon">
|
||||
<link rel="stylesheet" type="text/css" href="<%= BASE_URL %>custom.css">
|
||||
<link rel="stylesheet" id="corteza-custom-css" type="text/css" href="<%= BASE_URL %>custom.css">
|
||||
<link rel="preload" href="<%= BASE_URL %>config.js" as="script" />
|
||||
<title><%= FLAVOUR %></title>
|
||||
</head>
|
||||
|
||||
@@ -126,8 +126,8 @@ export default {
|
||||
// window.location.reload()
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
const stylesheet = document.querySelector('link[href="custom.css"]')
|
||||
stylesheet.href = 'custom.css'
|
||||
const stylesheet = document.querySelector('link#corteza-custom-css')
|
||||
stylesheet.href = 'custom.css?v=' + new Date().getTime()
|
||||
resolve()
|
||||
}, 1000)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user