mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Move DOMRectToArray() to icon handler
This commit is contained in:
parent
f95fee435a
commit
d5fec38409
2 changed files with 13 additions and 13 deletions
|
|
@ -223,3 +223,16 @@ kpxcIcons.updateIconPosition = function(iconClass) {
|
|||
kpxcIcons.setIconPosition(iconClass.icon, iconClass.inputField, iconClass.rtl, iconClass.segmented);
|
||||
}
|
||||
};
|
||||
|
||||
const DOMRectToArray = function (domRect) {
|
||||
return [
|
||||
domRect.bottom,
|
||||
domRect.height,
|
||||
domRect.left,
|
||||
domRect.right,
|
||||
domRect.top,
|
||||
domRect.width,
|
||||
domRect.x,
|
||||
domRect.y,
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -265,19 +265,6 @@ kpxcUI.createPageObserver = function() {
|
|||
}
|
||||
};
|
||||
|
||||
const DOMRectToArray = function (domRect) {
|
||||
return [
|
||||
domRect.bottom,
|
||||
domRect.height,
|
||||
domRect.left,
|
||||
domRect.right,
|
||||
domRect.top,
|
||||
domRect.width,
|
||||
domRect.x,
|
||||
domRect.y,
|
||||
];
|
||||
};
|
||||
|
||||
const initColorTheme = function(elem) {
|
||||
let theme = kpxc.settings['colorTheme'];
|
||||
if (theme === 'system') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue