Skip to content

Commit a985d07

Browse files
author
navega
committed
Fix ajax request: "SyntaxError: Unexpected token )", we need to specify the datatype for the response.
1 parent 7351f5f commit a985d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gmail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ var Gmail_ = function(localJQuery) {
16371637
method = method || "GET";
16381638

16391639
link = encodeURI(link).replace(/#-#-#/gi, "%23");
1640-
var config = {type: method, url: link, async: false};
1640+
var config = {type: method, url: link, async: false, dataType:'text'};
16411641
if (disable_cache) {
16421642
config.cache = false;
16431643
}

0 commit comments

Comments
 (0)