From a06acc4eb8ade26cbb17b9f5911876bac1da7715 Mon Sep 17 00:00:00 2001 From: Bram Chen Date: Fri, 5 Jul 2019 11:03:05 +0800 Subject: [PATCH] Update core/modules/savers/github.js Using "$tw.utils.base64Encode()" to encode content of data instead of calling module library directly. --- core/modules/savers/github.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/modules/savers/github.js b/core/modules/savers/github.js index ab644cbeb..892ba4847 100644 --- a/core/modules/savers/github.js +++ b/core/modules/savers/github.js @@ -12,8 +12,6 @@ Saves wiki by pushing a commit to the GitHub v3 REST API /*global $tw: false */ "use strict"; -var base64utf8 = require("$:/core/modules/utils/base64-utf8/base64-utf8.module.js"); - /* Select the appropriate saver module and set it up */ @@ -71,7 +69,7 @@ GitHubSaver.prototype.save = function(text,method,callback) { } var data = { message: "Saved by TiddlyWiki", - content: base64utf8.base64.encode.call(base64utf8,text), + content: $tw.utils.base64Encode(text), branch: branch, sha: sha };