From 71bbf3f7a55cdbcf404521d0b848858a80283bdc Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Wed, 15 Jan 2020 16:44:09 +0100 Subject: [PATCH] Use native promises (fixes microsoft/monaco-editor#1766) --- browser-amd-diff-editor/index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/browser-amd-diff-editor/index.html b/browser-amd-diff-editor/index.html index 2e93aa97..5ef8521a 100644 --- a/browser-amd-diff-editor/index.html +++ b/browser-amd-diff-editor/index.html @@ -16,7 +16,7 @@ require(['vs/editor/editor.main'], function() { var diffEditor = monaco.editor.createDiffEditor(document.getElementById('container')); - monaco.Promise.join([xhr('original.txt'), xhr('modified.txt')]).then(function(r) { + Promise.all([xhr('original.txt'), xhr('modified.txt')]).then(function(r) { var originalTxt = r[0].responseText; var modifiedTxt = r[1].responseText; @@ -30,7 +30,7 @@ - \ No newline at end of file +