Whymarrh Whitby
ceb5970afd
Remove unused NotificationManager#closePopup ( #8530 )
5 years ago
Whymarrh Whitby
f5a125fe61
Move export defaults statements alongside their objects ( #8525 )
5 years ago
Brad Decker
0c7269f599
fixes firefox popup location ( #8467 )
...
Co-Authored-By: Whymarrh Whitby <whymarrh.whitby@gmail.com>
5 years ago
Brad Decker
f9989c52c5
Position notification relative to last focused window ( #8356 )
5 years ago
Mark Stacey
852277b2ae
Refactor notification manager and triggerUi to use extension platform ( #8317 )
...
The notification manager has been refactored to use the extension
platform module instead of using `extensionizer` directly. The
extension platform API presents a more ergonomic API, and it correctly
handles errors (which the old notification manager did not). Methods
that the extension platform lacked have been added.
It has been updated to use `async/await` instead of callbacks as well,
for readability.
The `triggerUI` function has also been updated to use the extension
platform instead of `extensionizer`.
5 years ago
Mark Stacey
ac01c5c89a
Consistent jsdoc syntax ( #7755 )
...
* Specify type before parameter name
Various JSDoc `@param` entries were specified as `name {type}` rather
than `{type} name`.
A couple of `@return` entries have been given types as well.
* Use JSDoc optional syntax rather than Closure syntax
* Use @returns rather than @return
* Use consistent built-in type capitalization
Primitive types are lower-case, and Object is upper-case.
* Separate param/return description with a dash
5 years ago
Whymarrh Whitby
92971d3c87
Migrate codebase to use ESM ( #7730 )
...
* Update eslint-plugin-import version
* Convert JS files to use ESM
* Update ESLint rules to check imports
* Fix test:unit:global command env
* Cleanup mock-dev script
5 years ago
Whymarrh Whitby
274a9ecf53
yarn lint --fix
5 years ago
Whymarrh Whitby
aa41057628
Update ESLint rules for curly braces style ( #7477 )
...
* eslint: Enable curly and brace-style
* yarn lint --fix
5 years ago
William Monti Souza
98699fbbc0
Fixes popups not showing when screen size is odd ( #6312 )
6 years ago
Whymarrh Whitby
ea34d3b0ff
Centre the notification in the current window ( #6307 )
6 years ago
Whymarrh Whitby
5bf8a36a87
Centre all notification popups
6 years ago
bitpshr
badf0ce314
Conditionally use Promise-based extension API when creating windows
7 years ago
vittominacori
ff3c262621
set the popup id returned by create promise
7 years ago
vittominacori
4c1b526137
set an id to the metamask notification popup
7 years ago
Dan
6bc8cc819a
Merge branch 'develop' into i3725-refactor-send-component-
7 years ago
Dan
3ec22dc7e1
Notification manager method docs.
7 years ago
Dan
9f12c26d44
Even more documentation for various controllers and libs.
7 years ago
Jeffrey Tong
4f853bbd3c
remove console log
7 years ago
Jeffrey Tong
bda493dc9d
add comments that need clarification on naming convention
7 years ago
Jeffrey Tong
aaef2aeefd
fixed multiple notification windows when executing batch
7 years ago
Jeffrey Tong
40b1688c67
removed check for width & height on multiple popup windows
7 years ago
Chi Kei Chan
fa95303e1e
Sign Typed Request styling fixes
7 years ago
Dan
ddf11011c9
Signature request fixes.
7 years ago
kumavis
6ace0c9afb
notification-manager - remove promise listener
...
seems chrome changed their API?
MDN suggests that a Promise should be returned but getting `undefined`
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/windows/create
Chrome docs suggest its a callback API lolwut
https://developer.chrome.com/extensions/windows#method-create
8 years ago
Thomas Huang
6bdb4c8728
Fix linting warnings
8 years ago
kumavis
86e882c51a
notification-manager - rename show -> showPoup + make getPopup private
8 years ago
kumavis
5036263f88
introduce platform api and rename notifications to notification-manager
8 years ago