File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
browser/components/prompts Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
- "use strict" ;
6
-
7
- var EXPORTED_SYMBOLS = [ "PromptCollection" ] ;
8
-
9
- const { XPCOMUtils } = ChromeUtils . importESModule (
10
- "resource://gre/modules/XPCOMUtils.sys.mjs"
11
- ) ;
5
+ import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs" ;
12
6
13
7
/**
14
8
* Implements nsIPromptCollection
15
9
* @class PromptCollection
16
10
*/
17
- class PromptCollection {
11
+ export class PromptCollection {
18
12
confirmRepost ( browsingContext ) {
19
13
let brandName ;
20
14
try {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Classes = [
6
6
{
7
7
'cid': '{7913837c-9623-11ea-bb37-0242ac130002}',
8
8
'contract_ids': ['@mozilla.org/embedcomp/prompt-collection;1'],
9
- 'jsm ': 'resource:///modules/PromptCollection.jsm ',
9
+ 'esModule ': 'resource:///modules/PromptCollection.sys.mjs ',
10
10
'constructor': 'PromptCollection',
11
11
},
12
12
]
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ with Files("**"):
6
6
BUG_COMPONENT = ("Toolkit", "Notifications and Alerts")
7
7
8
8
EXTRA_JS_MODULES += [
9
- "PromptCollection.jsm ",
9
+ "PromptCollection.sys.mjs ",
10
10
]
11
11
12
12
XPCOM_MANIFESTS += [
You can’t perform that action at this time.
0 commit comments