Use visibility: hidden to hide webviews
This commit is contained in:
parent
b579379d88
commit
0b078d235d
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -8,12 +8,12 @@ if (!document) {
|
|||
(function () {
|
||||
const styles = `
|
||||
webview {
|
||||
display: flex;
|
||||
flex: 0 1;
|
||||
visibility: hidden;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
}
|
||||
webview.visible {
|
||||
visibility: visible;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
|
|
Loading…
Reference in a new issue