Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 2x 2x 2x 2x 2x 53x 12x 41x | 'use strict';
const path = require('path');
const { supportedHostsMap } = require('./supported-hosts');
const RUNTIMES_PATH = path.join(__dirname, '../runtimes');
const browsers = [
'BrowserAgent',
'chrome',
'edge',
'firefox',
'remote',
'safari',
];
exports.for = hostType => {
if (browsers.includes(hostType)) {
return path.join(RUNTIMES_PATH, 'browser.js');
}
return path.join(RUNTIMES_PATH, `${supportedHostsMap[hostType]}.js`);
};
|