diff options
author | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-10 18:07:05 +0200 |
---|---|---|
committer | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-10 18:18:52 +0200 |
commit | 01937dc9d5215ef96ce756e3ccda51bf29032f58 (patch) | |
tree | 609ec5bb48c692796520f7982c06b30633038588 /common/connection_types.mjs | |
download | browser-extension-01937dc9d5215ef96ce756e3ccda51bf29032f58.tar.gz browser-extension-01937dc9d5215ef96ce756e3ccda51bf29032f58.zip |
initial commit
Diffstat (limited to 'common/connection_types.mjs')
-rw-r--r-- | common/connection_types.mjs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/connection_types.mjs b/common/connection_types.mjs new file mode 100644 index 0000000..12d6de3 --- /dev/null +++ b/common/connection_types.mjs @@ -0,0 +1,21 @@ +/** +* Myext background scripts message connection types "enum" +* +* Copyright (C) 2021 Wojtek Kosior +* +* Dual-licensed under: +* - 0BSD license +* - GPLv3 or (at your option) any later version +*/ + +/* + * Those need to be strings so they can be used as 'name' parameter + * to browser.runtime.connect() + */ + +const CONNECTION_TYPE = { + REMOTE_STORAGE : "0", + PAGE_ACTIONS : "1" +}; + +export default CONNECTION_TYPE; |