1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 21:22:26 +01:00

Dont die at startup without ZoomManager

This commit is contained in:
Kris Maglione
2008-10-29 19:21:58 +00:00
parent 9edc89001d
commit ba875313d6

View File

@@ -279,8 +279,11 @@ function Buffer() //{{{
let error = styles.addSheet("font-size", "chrome://liberator/content/buffer.xhtml", let error = styles.addSheet("font-size", "chrome://liberator/content/buffer.xhtml",
"body { font-size: " + fontSize + "; }", true); "body { font-size: " + fontSize + "; }", true);
const ZOOM_MIN = Math.round(ZoomManager.MIN * 100); if ("ZoomManager" in window)
const ZOOM_MAX = Math.round(ZoomManager.MAX * 100); {
const ZOOM_MIN = Math.round(ZoomManager.MIN * 100);
const ZOOM_MAX = Math.round(ZoomManager.MAX * 100);
}
function setZoom(value, fullZoom) function setZoom(value, fullZoom)
{ {