Navigation Menu

Skip to content

Commit

Permalink
Add AMP proxy earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Abreu committed Sep 7, 2020
1 parent 9893c94 commit 83b4af8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions react/index.tsx
Expand Up @@ -13,12 +13,11 @@ import { loadRuntimeJSONs } from './start/runtime'

const intlPolyfillPromise = polyfillIntl()
registerRuntimeGlobals(runtimeGlobals)
addAMPProxy(window.__RUNTIME__)
patchLibs()

function start() {
global.__RUNTIME__ = window.__RUNTIME__
addAMPProxy(window.__RUNTIME__)

if (window.__RUNTIME__.start && !window.__ERROR__) {
if (canUseDOM) {
const contentLoadedPromise = new Promise((resolve) => {
Expand Down

0 comments on commit 83b4af8

Please sign in to comment.