mirror of https://github.com/keeweb/keeweb.git
17 lines
408 B
JavaScript
17 lines
408 B
JavaScript
import { NativeModules } from 'comp/launcher/native-modules';
|
|
|
|
class AutoTypeHelper {
|
|
getActiveWindowInfo(callback) {
|
|
NativeModules.kbdGetActiveWindow({
|
|
getWindowTitle: true,
|
|
getBrowserUrl: true
|
|
})
|
|
.then((win) => {
|
|
callback(undefined, win);
|
|
})
|
|
.catch((err) => callback(err));
|
|
}
|
|
}
|
|
|
|
export { AutoTypeHelper };
|