瀏覽代碼

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 => {