mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Do not create a duplicate
This commit is contained in:
parent
990e94252e
commit
f94711cb1a
1 changed files with 5 additions and 1 deletions
|
|
@ -118,7 +118,11 @@ kpxcBanner.create = async function(credentials = {}) {
|
|||
banner.appendMultiple(bannerInfo, bannerButtons);
|
||||
|
||||
initColorTheme(banner);
|
||||
window.parent.document.body.appendChild(banner);
|
||||
|
||||
const existingBanner = window.parent.document.body.querySelector('.kpxc-banner');
|
||||
if (existingBanner === null) {
|
||||
window.parent.document.body.appendChild(banner);
|
||||
}
|
||||
};
|
||||
|
||||
kpxcBanner.saveNewCredentials = async function(credentials = {}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue