mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:27:58 +01:00
Dont die at startup without ZoomManager
This commit is contained in:
@@ -279,8 +279,11 @@ function Buffer() //{{{
|
||||
let error = styles.addSheet("font-size", "chrome://liberator/content/buffer.xhtml",
|
||||
"body { font-size: " + fontSize + "; }", true);
|
||||
|
||||
const ZOOM_MIN = Math.round(ZoomManager.MIN * 100);
|
||||
const ZOOM_MAX = Math.round(ZoomManager.MAX * 100);
|
||||
if ("ZoomManager" in window)
|
||||
{
|
||||
const ZOOM_MIN = Math.round(ZoomManager.MIN * 100);
|
||||
const ZOOM_MAX = Math.round(ZoomManager.MAX * 100);
|
||||
}
|
||||
|
||||
function setZoom(value, fullZoom)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user