From 6c9b5b968a6f017047c6e74486dc2ff21867a4b8 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 30 Jul 2021 15:12:10 +0300 Subject: [PATCH] Update background/token-manager.js Co-authored-by: Gusted --- background/token-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/token-manager.js b/background/token-manager.js index bb435761..605da94d 100644 --- a/background/token-manager.js +++ b/background/token-manager.js @@ -169,8 +169,8 @@ const tokenMan = (() => { height, }, wnd.state !== 'minimized' && { // Center the popup to the current window - top: wnd.top + (wnd.height - width) / 2, - left: wnd.left + (wnd.width - width) / 2, + top: Math.ceil(wnd.top + (wnd.height - width) / 2), + left: Math.ceil(wnd.left + (wnd.width - width) / 2), }), }); const params = new URLSearchParams(