mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 16:35:46 +01:00
Update for per-window PBM changes. Closes issue #987.
This commit is contained in:
@@ -1151,10 +1151,19 @@ var Buffer = Module("Buffer", {
|
|||||||
|
|
||||||
if (services.has("contentPrefs") && !storage.privateMode
|
if (services.has("contentPrefs") && !storage.privateMode
|
||||||
&& prefs.get("browser.zoom.siteSpecific")) {
|
&& prefs.get("browser.zoom.siteSpecific")) {
|
||||||
services.contentPrefs[value != 1 ? "setPref" : "removePref"]
|
var privacy = sanitizer.getContext(this.win);
|
||||||
(this.uri, "browser.content.full-zoom", value);
|
if (value == 1) {
|
||||||
services.contentPrefs[value != 1 ? "setPref" : "removePref"]
|
services.contentPrefs.removePref(
|
||||||
(this.uri, "dactyl.content.full-zoom", fullZoom);
|
this.uri, "browser.content.full-zoom", privacy);
|
||||||
|
services.contentPrefs.removePref(
|
||||||
|
this.uri, "dactyl.content.full-zoom", privacy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
services.contentPrefs.setPref(
|
||||||
|
this.uri, "browser.content.full-zoom", value, privacy);
|
||||||
|
services.contentPrefsc.setPref(
|
||||||
|
this.uri, "dactyl.content.full-zoom", fullZoom, privacy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
statusline.updateZoomLevel();
|
statusline.updateZoomLevel();
|
||||||
|
|||||||
Reference in New Issue
Block a user