mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 20:15:46 +01:00
Workaround for whiny pansies with old saved zoom settings who are too lazy to update them.
This commit is contained in:
@@ -1139,7 +1139,7 @@ var Buffer = Module("Buffer", {
|
|||||||
|
|
||||||
if (services.has("contentPrefs") && prefs.get("browser.zoom.siteSpecific"))
|
if (services.has("contentPrefs") && prefs.get("browser.zoom.siteSpecific"))
|
||||||
services.contentPrefs.getPref(uri, "dactyl.content.full-zoom", function (val) {
|
services.contentPrefs.getPref(uri, "dactyl.content.full-zoom", function (val) {
|
||||||
if (uri.equals(self.uri) && val != prefs.get("browser.zoom.full"))
|
if (val != null && uri.equals(self.uri) && val != prefs.get("browser.zoom.full"))
|
||||||
[self.contentViewer.textZoom, self.contentViewer.fullZoom] =
|
[self.contentViewer.textZoom, self.contentViewer.fullZoom] =
|
||||||
[self.contentViewer.fullZoom, self.contentViewer.textZoom];
|
[self.contentViewer.fullZoom, self.contentViewer.textZoom];
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user