From 0eeb25cd42fa62402187ec254876885c494e1ced Mon Sep 17 00:00:00 2001 From: Pomax Date: Wed, 8 Feb 2017 20:47:32 -0800 Subject: [PATCH] giving up on pontoon --- components/App.jsx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/components/App.jsx b/components/App.jsx index b491bb95..c5719efb 100644 --- a/components/App.jsx +++ b/components/App.jsx @@ -2,20 +2,4 @@ var React = require("react"); var ReactDOM = require("react-dom"); var FullArticle = require("./FullArticle.jsx"); -function addPontoon() { - // It is entirely unclear when pontoon.js should be loading. - // According to the people in #pontoon on mozilla.org, it should - // be loaded after DOM content has finished loading, but running - // this injection without a timeout clearly isn't late enough still. - setTimeout( () => { - var jquery = document.createElement("script"); - jquery.src = "https://localize-bezierinfo.herokuapp.com/static/js/jquery-1.11.1.min.js"; - document.head.appendChild(jquery); - - var pontoon = document.createElement("script"); - pontoon.src = "https://localize-bezierinfo.herokuapp.com/pontoon.js"; - document.head.appendChild(pontoon); - }, 5000); -} - -ReactDOM.render(, document.getElementById("article"), addPontoon); +ReactDOM.render(, document.getElementById("article"));