Skip to content

Commit

Permalink
Merge pull request #81 from leonhartX/fix-pull-filetype
Browse files Browse the repository at this point in the history
check config filetype when create file
  • Loading branch information
leonhartX authored Apr 17, 2018
2 parents c616a5c + daa3d6a commit fce948d
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 fce948d

Please sign in to comment.