Explorar el Código

Google Drive bug

When you only want to export to Google drive, it also downloads it. This fixes the issue.
I also want to mention that It was too hard to get it working because there was no documentation how to contribute to the project. Maybe can you add that? I'm going to open an issue about this.
Musab Gültekin hace 4 años
padre
commit
f8ca59dbdf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      extension/core/bg/autosave.js

+ 2 - 2
extension/core/bg/autosave.js

@@ -166,7 +166,7 @@ async function saveContent(message, tab) {
 				if (options.saveToGDrive) {
 					const blob = new Blob([pageData.content], { type: "text/html" });
 					await (await downloads.saveToGDrive(message.taskId, pageData.filename, blob, options, {})).uploadPromise;
-				} if (options.saveToGitHub) {
+				} else if (options.saveToGitHub) {
 					await (await downloads.saveToGitHub(message.taskId, pageData.filename, pageData.content, options.githubToken, options.githubUser, options.githubRepository, options.githubBranch)).pushPromise;
 				} else if (options.saveWithCompanion) {
 					await companion.save({
@@ -229,4 +229,4 @@ function fetch(url) {
 		xhrRequest.open("GET", url, true);
 		xhrRequest.send();
 	});
-}
+}