Skip to content

Commit 59a6961

Browse files
committed
Merge remote-tracking branch 'mathiasrw/patch-1'
2 parents f31d9ae + 6402b56 commit 59a6961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gmail.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ var Gmail_ = function(localJQuery) {
14781478

14791479
api.tools.make_request = function (_link, method) {
14801480
var link = decodeURIComponent(_link.replace(/%23/g, "#-#-#"));
1481-
method = (typeof method == undefined || typeof method == null) ? 'GET' : method;
1481+
method = method || 'GET';
14821482

14831483
link = encodeURI(link).replace(/#-#-#/gi, "%23");
14841484
var request = $.ajax({ type: method, url: link, async:false });
@@ -1489,7 +1489,7 @@ var Gmail_ = function(localJQuery) {
14891489

14901490
api.tools.make_request_async = function (_link, method, callback) {
14911491
var link = decodeURIComponent(_link.replace(/%23/g, "#-#-#"));
1492-
method = (typeof method == undefined || typeof method == null) ? 'GET' : method;
1492+
method = method || 'GET';
14931493

14941494
link = encodeURI(link).replace(/#-#-#/gi, "%23");
14951495
$.ajax({ type: method, url: link, async:true, dataType: 'text' })

0 commit comments

Comments
 (0)