aboutsummaryrefslogtreecommitdiff
path: root/common/connection_types.js
blob: 41bde75d5deb12273a8987c9be8ea4513f566e66 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * Hachette background scripts message connection types "enum"
 *
 * Copyright (C) 2021 Wojtek Kosior
 * Redistribution terms are gathered in the `copyright' file.
 */

/*
 * 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",
    PAGE_INFO : "2",
    ACTIVITY_INFO : "3"
};

/*
 * EXPORTS_START
 * EXPORT CONNECTION_TYPE
 * EXPORTS_END
 */