catch
This commit is contained in:
parent
6610a103eb
commit
60e9db2cc6
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ export const createStyleSheet = (id) => {
|
|||
}
|
||||
|
||||
let el = document.getElementById(id)
|
||||
try {
|
||||
el.sheet.insertRule(':root { padding: initial }')
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
if (!el?.sheet) {
|
||||
el = document.getElementById(id + '-link')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue