mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-22 19:43:53 +00:00
Use visibility: hidden to hide webviews
This commit is contained in:
parent
b579379d88
commit
0b078d235d
4
index.js
4
index.js
|
@ -8,12 +8,12 @@ if (!document) {
|
||||||
(function () {
|
(function () {
|
||||||
const styles = `
|
const styles = `
|
||||||
webview {
|
webview {
|
||||||
display: flex;
|
visibility: hidden;
|
||||||
flex: 0 1;
|
|
||||||
width: 0px;
|
width: 0px;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
}
|
}
|
||||||
webview.visible {
|
webview.visible {
|
||||||
|
visibility: visible;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
Loading…
Reference in a new issue