aboutsummaryrefslogtreecommitdiff
path: root/common/connection_types.js
blob: a01a777fadf30729a66cef8e418c64c963b80d73 (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
25
/**
* 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
*/

"use strict";

/*
 * 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"
    };

    window.CONNECTION_TYPE = CONNECTION_TYPE;
})();