haketilo / common / connection_types.js @ 261548ff
1 |
/**
|
---|---|
2 |
* Myext background scripts message connection types "enum"
|
3 |
*
|
4 |
* Copyright (C) 2021 Wojtek Kosior
|
5 |
* Redistribution terms are gathered in the `copyright' file.
|
6 |
*/
|
7 |
|
8 |
/*
|
9 |
* Those need to be strings so they can be used as 'name' parameter
|
10 |
* to browser.runtime.connect()
|
11 |
*/
|
12 |
|
13 |
const CONNECTION_TYPE = { |
14 |
REMOTE_STORAGE : "0", |
15 |
PAGE_ACTIONS : "1" |
16 |
};
|
17 |
|
18 |
/*
|
19 |
* EXPORTS_START
|
20 |
* EXPORT CONNECTION_TYPE
|
21 |
* EXPORTS_END
|
22 |
*/
|