Skip to content

Commit

Permalink
check config filetype when create file
Browse files Browse the repository at this point in the history
  • Loading branch information
leonhartX committed Apr 17, 2018
1 parent c616a5c commit daa3d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.2",
"version": "4.0.3",
"manifest_version": 2,
"default_locale": "en",
"name": "__MSG_appName__",
Expand Down
2 changes: 1 addition & 1 deletion src/gas-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Gas {
}

gasCreateFile(file, type) {
const typeId = type === 'gs' ? 0 : 2;
const typeId = type === context.config.filetype ? 0 : 2;
const payload = `7|1|7|${getBaseUrl()}\|${context.gasToken}|_|makeNewFile|19|h|${file}|1|2|3|4|2|5|6|7|6|${typeId}|`;
return new Promise((resolve, reject) => {
$.ajax({
Expand Down

0 comments on commit daa3d6a

Please sign in to comment.