A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/app/vendor/trezor/usb-permissions.js

20 lines
570 B

/*
Handling messages from usb permissions iframe
*/
window.addEventListener('message', event => {
if (event.data === 'usb-permissions-init') {
const iframe = document.getElementById('trezor-usb-permissions');
iframe.contentWindow.postMessage({
type: 'usb-permissions-init',
extension: chrome.runtime.id,
}, '*');
} else if (event.data === 'usb-permissions-close') {
chrome.tabs.query({
currentWindow: true,
active: true,
}, (tabs) => {
chrome.tabs.remove(tabs[0].id);
});
}
});