mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 14:44:20 +01:00
Text zoom level rememberization magic.
This commit is contained in:
@@ -148,6 +148,8 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
||||
|
||||
let win = webProgress.DOMWindow;
|
||||
if (win && uri) {
|
||||
Buffer(win).updateZoom();
|
||||
|
||||
let oldURI = overlay.getData(win.document)["uri"];
|
||||
if (overlay.getData(win.document)["load-idx"] === webProgress.loadedTransIndex
|
||||
|| !oldURI || uri.spec.replace(/#.*/, "") !== oldURI.replace(/#.*/, ""))
|
||||
|
||||
Reference in New Issue
Block a user