UNPKG

@opra/client

Version:
19 lines (18 loc) 534 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpBackend = void 0; const backend_js_1 = require("../core/backend.js"); /** * * @class HttpBackend */ class HttpBackend extends backend_js_1.Backend { constructor(serviceUrl, options) { super(options); const u = new URL(serviceUrl); this.serviceUrl = u.toString().split('?')[0].split('#')[0]; if (!this.serviceUrl.endsWith('/')) this.serviceUrl += '/'; } } exports.HttpBackend = HttpBackend;