Don't keep custom styles in window scope
This commit is contained in:
parent
55e9c00d3c
commit
f9bb271506
3 changed files with 3 additions and 7 deletions
5
dist/electron-tabs.js
vendored
5
dist/electron-tabs.js
vendored
|
@ -2555,10 +2555,7 @@ class $eda442ba39f881a8$var$TabGroup extends HTMLElement {
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
// Support custom styles
|
// Support custom styles
|
||||||
const style = this.querySelector("style");
|
const style = this.querySelector("style");
|
||||||
if (style) {
|
if (style) this.shadow.appendChild(style);
|
||||||
const clone = style.cloneNode(true);
|
|
||||||
this.shadow.appendChild(clone);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
createComponent() {
|
createComponent() {
|
||||||
const shadow = this.attachShadow({
|
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
|
// Support custom styles
|
||||||
const style = this.querySelector("style");
|
const style = this.querySelector("style");
|
||||||
if (style) {
|
if (style) {
|
||||||
const clone = style.cloneNode(true);
|
this.shadow.appendChild(style);
|
||||||
this.shadow.appendChild(clone);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue