Skip to content

Commit

Permalink
Set all as method default
Browse files Browse the repository at this point in the history
  • Loading branch information
eshengsky committed Dec 31, 2019
1 parent 94896bf commit 5ccc8cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "AxiosMocker",
"description": "axios mocker extension",
"version": "1.0.2",
"version": "1.1.0",
"background": {
"scripts": ["background.js"]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axios-mocker",
"version": "1.0.2",
"version": "1.1.0",
"description": "The most convenient tool to mock requests for axios, with built-in Chrome extension support.",
"main": "src/axios-mocker.js",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions static/js/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Mocker {
resetMockDetails() {
this.uid = '';
this.$textUri.val('');
this.$selectMethod.selectlist('selectByValue', 'GET');
this.$selectMethod.selectlist('selectByValue', '');
this.$selectStatus.combobox('selectByValue', '200');
this.$selectMime.combobox('selectByValue', 'application/json');
this.$textHeader.val('');
Expand Down Expand Up @@ -414,7 +414,7 @@ class Mocker {
item.active = item.active !== false;
item.comments = item.comments || "";
item.req.url = item.req.url.trim();
item.req.method = item.req.method ? item.req.method.toUpperCase() : 'GET';
item.req.method = item.req.method ? item.req.method.toUpperCase() : '';
item.res.contentType = item.res.contentType || 'application/json';
item.res.headers = item.res.headers || {};
item.res.editorMode = item.res.editorMode || 'json';
Expand Down

0 comments on commit 5ccc8cc

Please sign in to comment.