mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 12:04:12 +01:00
Remove useless var from getContainerOffsets.
This commit is contained in:
@@ -276,8 +276,6 @@ function Hints() //{{{
|
|||||||
// the containing block offsets with respect to the viewport
|
// the containing block offsets with respect to the viewport
|
||||||
function getContainerOffsets(doc)
|
function getContainerOffsets(doc)
|
||||||
{
|
{
|
||||||
let body = (doc.body || doc.documentElement);
|
|
||||||
|
|
||||||
if (/^(absolute|fixed|relative)$/.test(util.computedStyle(body)["position"]))
|
if (/^(absolute|fixed|relative)$/.test(util.computedStyle(body)["position"]))
|
||||||
{
|
{
|
||||||
let bodyRect = (doc.body || doc.documentElement).getClientRects()[0];
|
let bodyRect = (doc.body || doc.documentElement).getClientRects()[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user