mirror of https://github.com/keeweb/keeweb
Added check for system supporting window id
parent
3b3c95e57c
commit
4171848655
|
@ -188,6 +188,7 @@ const AutoType = {
|
|||
logger.debug('Error during active window check, something is wrong', err);
|
||||
return callback(false);
|
||||
}
|
||||
logger.info(this.supportsEventsWithWindowId);
|
||||
if (activeWindowInfo.id !== windowInfo.id && !this.supportsEventsWithWindowId) {
|
||||
logger.info(
|
||||
`Active window doesn't match: ID is different. ` +
|
||||
|
@ -195,7 +196,7 @@ const AutoType = {
|
|||
);
|
||||
return callback(false, activeWindowInfo);
|
||||
}
|
||||
if (activeWindowInfo.url !== windowInfo.url) {
|
||||
if (activeWindowInfo.url !== windowInfo.url && !this.supportsEventsWithWindowId) {
|
||||
logger.info(
|
||||
`Active window doesn't match: url is different. ` +
|
||||
`Expected "${windowInfo.url}", got "${activeWindowInfo.url}"`
|
||||
|
|
Loading…
Reference in New Issue