@swrve/smarttv-sdk
Version:
Swrve marketing engagement platform SDK for SmartTV OTT devices
16 lines (15 loc) • 478 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const md5_1 = __importDefault(require("crypto-js/md5"));
const ctx = self;
ctx.onmessage = (ev) => {
const { id, payload } = ev.data;
const result = md5_1.default(payload).toString();
ctx.postMessage({
id,
payload: result,
});
};