aboutsummaryrefslogtreecommitdiff
path: root/common/browser.mjs
blob: 0d1b23367012433c7a0e60589542732af47bc1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
* Myext WebExtension API access normalization
*
* Copyright (C) 2021 Wojtek Kosior
*
* Dual-licensed under:
*   - 0BSD license
*   - GPLv3 or (at your option) any later version
*/

"use strict";

/*
 * This module normalizes access to WebExtension apis between
 * chrome-based and firefox-based browsers.
 */

export default (window.browser === undefined) ? chrome : browser;