gui: add zoom url option
This commit is contained in:
parent
82e8aad677
commit
40c87350f2
1 changed files with 2 additions and 3 deletions
|
|
@ -18,11 +18,10 @@ window.TABS = {}
|
|||
|
||||
|
||||
window.PXSCALE = 1
|
||||
window.INITIALZOOM = 1
|
||||
window.INITIALZOOM = ARGV.zoom ? ARGV.zoom : 1
|
||||
window.PXSCALE_RESET = ()=>{
|
||||
PXSCALE = getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")
|
||||
PXSCALE = INITIALZOOM
|
||||
document.documentElement.style.setProperty("--pixel-scale", PXSCALE)
|
||||
INITIALZOOM = PXSCALE
|
||||
}
|
||||
PXSCALE_RESET()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue