Преглед изворни кода

Fix rendering of trust dialog

Steven Silvester пре 7 година
родитељ
комит
1b0e454c9d
1 измењених фајлова са 3 додато и 1 уклоњено
  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 => {