Innovenergy_trunk/frontend/node_modules/testcafe-hammerhead/lib/utils/get-storage-key.js

14 lines
594 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
/* eslint hammerhead/proto-methods: 2 */
const STORAGE_WRAPPER_PREFIX = 'hammerhead|storage-wrapper|';
function getStorageKey(sessionId, host) {
return STORAGE_WRAPPER_PREFIX + sessionId + '|' + host;
}
exports.default = getStorageKey;module.exports = exports.default;