mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-22 19:43:53 +00:00
Don't keep custom styles in window scope
This commit is contained in:
parent
55e9c00d3c
commit
f9bb271506
5
dist/electron-tabs.js
vendored
5
dist/electron-tabs.js
vendored
|
@ -2555,10 +2555,7 @@ class $eda442ba39f881a8$var$TabGroup extends HTMLElement {
|
|||
connectedCallback() {
|
||||
// Support custom styles
|
||||
const style = this.querySelector("style");
|
||||
if (style) {
|
||||
const clone = style.cloneNode(true);
|
||||
this.shadow.appendChild(clone);
|
||||
}
|
||||
if (style) this.shadow.appendChild(style);
|
||||
}
|
||||
createComponent() {
|
||||
const shadow = this.attachShadow({
|
||||
|
|
2
dist/electron-tabs.js.map
vendored
2
dist/electron-tabs.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -100,8 +100,7 @@ class TabGroup extends HTMLElement {
|
|||
// Support custom styles
|
||||
const style = this.querySelector("style");
|
||||
if (style) {
|
||||
const clone = style.cloneNode(true);
|
||||
this.shadow.appendChild(clone);
|
||||
this.shadow.appendChild(style);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue