aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/index.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 5ab543c4..0c936257 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -16,17 +16,7 @@ import { CookiesProvider } from 'react-cookie'
import { VisitorProvider } from './ui/VisitorContext'
const Juick = lazy(() => import('./App'))
-
-function fromBinary(encoded) {
- const binary = window.atob(encoded)
- const bytes = new Uint8Array(binary.length)
- for (let i = 0; i < bytes.length; i++) {
- bytes[i] = binary.charCodeAt(i)
- }
- return String.fromCharCode(...new Uint16Array(bytes.buffer))
-}
-
-const props = window.__PROPS__ ? JSON.parse(fromBinary(window.__PROPS__)) : {}
+const props = window.__PROPS__ ? JSON.parse(decodeURIComponent(escape(atob(window.__PROPS__)))) : {}
const JuickApp = () => (
<StrictMode>