Innovenergy_trunk/frontend/node_modules/testcafe/lib/shared/utils/is-file-protocol.js

9 lines
964 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const FILE_PROTOCOL = 'file:///';
function isFileProtocol(url = '') {
return url.indexOf(FILE_PROTOCOL) === 0;
}
exports.default = isFileProtocol;
module.exports = exports.default;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtZmlsZS1wcm90b2NvbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zaGFyZWQvdXRpbHMvaXMtZmlsZS1wcm90b2NvbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE1BQU0sYUFBYSxHQUFHLFVBQVUsQ0FBQztBQUVqQyxTQUFTLGNBQWMsQ0FBRSxHQUFHLEdBQUcsRUFBRTtJQUM3QixPQUFPLEdBQUcsQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQzVDLENBQUM7QUFFRCxrQkFBZSxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBGSUxFX1BST1RPQ09MID0gJ2ZpbGU6Ly8vJztcblxuZnVuY3Rpb24gaXNGaWxlUHJvdG9jb2wgKHVybCA9ICcnKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHVybC5pbmRleE9mKEZJTEVfUFJPVE9DT0wpID09PSAwO1xufVxuXG5leHBvcnQgZGVmYXVsdCBpc0ZpbGVQcm90b2NvbDtcbiJdfQ==