1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui
Hennadii Ivtushok 72d2977e72
Warn about multiple MetaMask instances running (#13836)
* Add text warning on startup page

* Try to detect extensions with browser API

* Setup messaging between different versions of extension

* Cleanup

* Cleanup

* Simplify check for multiple instances running

* Fix a doc string + use webextension-polyfill

* Fix test

* Mock webextension-polyfill

* Mock correctly

* Catch error and show warning in both extensions

* Mock as promise

* Address comments

* Rename build ids

* Run detection code only if Chrome

* Add Firefox warnings

* Cleanup imports

* Update connection ids

* Run detection code for Firefox

* Add test

* Add missing await

* Update tests

* Cleanup

* Cleanup

* Improve testing

* Improve tests

* Log errors from sendMessage

* Cleanup

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-04-27 20:14:10 +02:00
..
__mocks__ Deprecate extensionizer for webextension-polyfill (#13960) 2022-03-18 14:07:05 -05:00
components Warn about multiple MetaMask instances running (#13836) 2022-04-27 20:14:10 +02:00
contexts Renamed metametrics.new.js to metametrics.js (#14327) 2022-04-01 14:11:12 -05:00
css Dark Mode: Fix QR display (#14312) 2022-04-01 14:53:14 -05:00
ducks call controller methods directly in send duck (#14465) 2022-04-26 12:07:39 -05:00
helpers Add snaps view search (#14419) 2022-04-19 11:08:09 -04:00
hooks Add testnet name as prefix for native currency of preloaded testnets (#14454) 2022-04-21 14:09:41 -05:00
pages Rename NotificationController to AnnouncementController (#14389) 2022-04-27 10:36:32 +02:00
selectors Rename NotificationController to AnnouncementController (#14389) 2022-04-27 10:36:32 +02:00
store call controller methods directly in send duck (#14465) 2022-04-26 12:07:39 -05:00
index.js ui/index: fix getPlatformInfo w/ polyfill (#14171) 2022-03-25 07:24:27 -02:30