From 4da5f3276478872404796a3e127983f2d4077f69 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 19 Feb 2020 12:44:46 +0000 Subject: [PATCH] get rid of lockOrigin backwards compatibility Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/usercontent/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usercontent/index.js b/src/usercontent/index.js index 0648cbb238..b87ccb9dbb 100644 --- a/src/usercontent/index.js +++ b/src/usercontent/index.js @@ -42,7 +42,7 @@ function remoteSetTint(event) { } window.onmessage = function(e) { - if (lockOrigin === undefined || e.origin === lockOrigin) { + if (e.origin === lockOrigin) { if (e.data.blob) remoteRender(e); else remoteSetTint(e); }