Revision 261548ff
Added by koszko about 2 years ago
common/connection_types.js | ||
---|---|---|
5 | 5 |
* Redistribution terms are gathered in the `copyright' file. |
6 | 6 |
*/ |
7 | 7 |
|
8 |
"use strict"; |
|
9 |
|
|
10 | 8 |
/* |
11 | 9 |
* Those need to be strings so they can be used as 'name' parameter |
12 | 10 |
* to browser.runtime.connect() |
13 | 11 |
*/ |
14 | 12 |
|
15 |
(() => { |
|
16 |
const CONNECTION_TYPE = { |
|
17 |
REMOTE_STORAGE : "0", |
|
18 |
PAGE_ACTIONS : "1" |
|
19 |
}; |
|
13 |
const CONNECTION_TYPE = { |
|
14 |
REMOTE_STORAGE : "0", |
|
15 |
PAGE_ACTIONS : "1" |
|
16 |
}; |
|
20 | 17 |
|
21 |
window.CONNECTION_TYPE = CONNECTION_TYPE; |
|
22 |
})(); |
|
18 |
/* |
|
19 |
* EXPORTS_START |
|
20 |
* EXPORT CONNECTION_TYPE |
|
21 |
* EXPORTS_END |
|
22 |
*/ |
Also available in: Unified diff
emply an sh-based build system; make some changes to blocking