1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 14:22:27 +01:00

Workaround for whiny pansies with old saved zoom settings who are too lazy to update them.

This commit is contained in:
Kris Maglione
2011-10-10 13:07:32 -04:00
parent f53aa2cbed
commit f63a4a31f1

View File

@@ -1139,7 +1139,7 @@ var Buffer = Module("Buffer", {
if (services.has("contentPrefs") && prefs.get("browser.zoom.siteSpecific"))
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.fullZoom, self.contentViewer.textZoom];
});