Project

General

Profile

Download (471 Bytes) Statistics
| Branch: | Tag: | Revision:

haketilo / common / connection_types.js @ 6b12a034

1
/**
2
 * Hachette 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
    PAGE_INFO : "2",
17
    ACTIVITY_INFO : "3"
18
};
19

    
20
/*
21
 * EXPORTS_START
22
 * EXPORT CONNECTION_TYPE
23
 * EXPORTS_END
24
 */
(1-1/8)