Procházet zdrojové kódy

Fix rendering of trust dialog

Steven Silvester před 7 roky
rodič
revize
1b0e454c9d
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      packages/notebook/src/actions.ts

+ 3 - 1
packages/notebook/src/actions.ts

@@ -1015,8 +1015,10 @@ namespace NotebookActions {
         buttons: [Dialog.okButton()]
       }).then(() => void 0);
     }
+    let body = document.createElement('div');
+    body.innerHTML = TRUST_MESSAGE;
     return showDialog({
-      body: TRUST_MESSAGE,
+      body,
       title: 'Trust this notebook?',
       buttons: [Dialog.cancelButton(), Dialog.warnButton()]
     }).then(result => {