Skip to content

Commit

Permalink
urlbarMods: fix identity icon drag box.
Browse files Browse the repository at this point in the history
sorry that has been broken so long, I don't use it frequently.
  • Loading branch information
aminomancer committed May 7, 2022
1 parent 5e91d33 commit 3f9a47c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions JS/urlbarMods.uc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Urlbar Mods
// @version 1.6.1
// @version 1.6.2
// @author aminomancer
// @homepage https://github.com/aminomancer/uc.css.js
// @description Make some minor modifications to the urlbar. See the code comments below for more details.
Expand Down Expand Up @@ -379,8 +379,7 @@ class UrlbarMods {
let urlString = value + "\n" + gBrowser.contentTitle;
let htmlString = '<a href="' + value + '">' + value + "</a>";

let windowUtils = window.windowUtils;
let scale = windowUtils.screenPixelsPerCSSPixel / windowUtils.fullZoom;
let scale = window.devicePixelRatio;
let canvas = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
canvas.width = 600 * scale;
let ctx = canvas.getContext("2d");
Expand Down

0 comments on commit 3f9a47c

Please sign in to comment.