From 40f719aa70da15cb6b93e84e6eadc8ad128116b2 Mon Sep 17 00:00:00 2001 From: xlrlyt <74809162+xlrlyt@users.noreply.github.com> Date: Mon, 10 Jan 2022 21:58:27 +0800 Subject: [PATCH] Update markdown-editor.js --- js/markdown-editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/markdown-editor.js b/js/markdown-editor.js index 406affc..5c907bd 100644 --- a/js/markdown-editor.js +++ b/js/markdown-editor.js @@ -158,7 +158,7 @@ var markdownEditor = { contentType: "application/octet-stream", data: bodyContent, processData: false, - headers: { Authorization: "Bearer" + editor.accessToken }, + headers: { Authorization: "Bearer " + editor.accessToken }, success: function(data, status, xhr) { if (data && data.name && data.parentReference) { editor.lastSelectedFile = data; @@ -228,7 +228,7 @@ var markdownEditor = { method: "PATCH", contentType: "application/json; charset=UTF-8", data: JSON.stringify(patchData), - headers: { Authorization: "Bearer" + editor.accessToken }, + headers: { Authorization: "Bearer " + editor.accessToken }, success: function(data, status, xhr) { if (data && data.name && data.parentReference) { editor.showSuccessMessage("File was updated successfully."); @@ -265,7 +265,7 @@ var markdownEditor = { method: "POST", contentType: "application/json; charset=UTF-8", data: JSON.stringify(requestBody), - headers: { Authorization: "Bearer" + editor.accessToken }, + headers: { Authorization: "Bearer " + editor.accessToken }, success: function(data, status, xhr) { if (data && data.link && data.link.webUrl) { window.prompt("View-only sharing link", data.link.webUrl);