gui: add zoom url option

This commit is contained in:
jean-emmanuel 2017-06-17 11:01:19 +02:00
parent 82e8aad677
commit 40c87350f2

View file

@ -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()