mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-25 03:30:26 +01:00
#1515 Clipboard WIP
This commit is contained in:
parent
de019a7aae
commit
120f7c1770
@ -67,6 +67,10 @@ const initBEAction = (url, tab, storageData) => {
|
||||
});
|
||||
})
|
||||
.then(channel => channel.connect())
|
||||
.then(() => {
|
||||
// @TODO: Ask content script for activeElement
|
||||
// checkActiveElement
|
||||
})
|
||||
.then(() => {
|
||||
if (!storage[`tabData-${tab?.id}`]?.lastFocusedInput) {
|
||||
return TwoFasNotification.show(config.Texts.Success.PushSentClipboard, tab?.id);
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
const config = require('../../config');
|
||||
const loadFromLocalStorage = require('../../localStorage/loadFromLocalStorage');
|
||||
const { notification, inputToken, getTokenInput, showNotificationInfo, loadFonts, isInFrame, pageLoadComplete } = require('../functions');
|
||||
const { notification, inputToken, getTokenInput, showNotificationInfo, loadFonts, isInFrame } = require('../functions');
|
||||
const storeLog = require('../../partials/storeLog');
|
||||
|
||||
const contentOnMessage = async (request, tabData) => {
|
||||
@ -66,8 +66,14 @@ const contentOnMessage = async (request, tabData) => {
|
||||
}
|
||||
}
|
||||
|
||||
case 'checkActiveElement': {
|
||||
// const activeElement = document.activeElement;
|
||||
|
||||
return { status: 'todo' };
|
||||
}
|
||||
|
||||
case 'pageLoadComplete': {
|
||||
return { status: 'ok' } // Possibly for future use
|
||||
return { status: 'ok' }; // Possibly for future use
|
||||
}
|
||||
|
||||
case 'notification':
|
||||
|
Loading…
Reference in New Issue
Block a user