haketilo / common / connection_types.js @ b93f26bf
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 |
"use strict"; |
9 |
|
10 |
/*
|
11 |
* Those need to be strings so they can be used as 'name' parameter
|
12 |
* to browser.runtime.connect()
|
13 |
*/
|
14 |
|
15 |
(() => { |
16 |
const CONNECTION_TYPE = { |
17 |
REMOTE_STORAGE : "0", |
18 |
PAGE_ACTIONS : "1" |
19 |
};
|
20 |
|
21 |
window.CONNECTION_TYPE = CONNECTION_TYPE; |
22 |
})();
|