File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1478,7 +1478,7 @@ var Gmail_ = function(localJQuery) {
1478
1478
1479
1479
api . tools . make_request = function ( _link , method ) {
1480
1480
var link = decodeURIComponent ( _link . replace ( / % 2 3 / g, "#-#-#" ) ) ;
1481
- method = ( typeof method == undefined || typeof method == null ) ? 'GET' : method ;
1481
+ method = method || 'GET' ;
1482
1482
1483
1483
link = encodeURI ( link ) . replace ( / # - # - # / gi, "%23" ) ;
1484
1484
var request = $ . ajax ( { type : method , url : link , async :false } ) ;
@@ -1489,7 +1489,7 @@ var Gmail_ = function(localJQuery) {
1489
1489
1490
1490
api . tools . make_request_async = function ( _link , method , callback ) {
1491
1491
var link = decodeURIComponent ( _link . replace ( / % 2 3 / g, "#-#-#" ) ) ;
1492
- method = ( typeof method == undefined || typeof method == null ) ? 'GET' : method ;
1492
+ method = method || 'GET' ;
1493
1493
1494
1494
link = encodeURI ( link ) . replace ( / # - # - # / gi, "%23" ) ;
1495
1495
$ . ajax ( { type : method , url : link , async :true , dataType : 'text' } )
You can’t perform that action at this time.
0 commit comments