From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Thu, 20 Sep 2018 02:56:13 +0200
Subject: update packages

---
 src/webex/pages/confirm-contract.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/webex/pages/confirm-contract.tsx')

diff --git a/src/webex/pages/confirm-contract.tsx b/src/webex/pages/confirm-contract.tsx
index 41eebda8e..d24613794 100644
--- a/src/webex/pages/confirm-contract.tsx
+++ b/src/webex/pages/confirm-contract.tsx
@@ -25,6 +25,8 @@
  */
 import * as i18n from "../../i18n";
 
+import { runOnceWhenReady } from "./common";
+
 import {
   ExchangeRecord,
   ProposalDownloadRecord,
@@ -372,7 +374,7 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt
           <i18n.Translate wrap="p">
             The merchant{" "}<span>{merchantName}</span> offers you to purchase:
           </i18n.Translate>
-          <div style={{"text-align": "center"}}>
+          <div style={{"textAlign": "center"}}>
             <strong>{c.summary}</strong>
           </div>
           <strong></strong>
@@ -395,7 +397,7 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt
 }
 
 
-document.addEventListener("DOMContentLoaded", () => {
+runOnceWhenReady(() => {
   const url = new URI(document.location.href);
   const query: any = URI.parseQuery(url.query());
 
-- 
cgit v1.2.3

