Skip to content

Commit 95230d0

Browse files
committed
Fix error in gmail.get.localization()
1 parent f5a26e0 commit 95230d0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
# Changelog
33

4+
## Version 1.0.13
5+
6+
- Fix error in `gmail.get.localization()`, which should have been caught by CI.
7+
48
## Version 1.0.12
59

610
- Fix error in `gmail.get.localization()`. This closes [issue 652](https://github.com/KartikTalwar/gmail.js/issues/652).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gmail-js",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"description": "JavaScript API for Gmail (useful for chrome extensions)",
55
"main": "src/gmail.js",
66
"types": "src/gmail.d.ts",

src/gmail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ var Gmail = function(localJQuery) {
271271
// and in even newer gmail this seems to work:
272272
if (globals[4]) {
273273
let locale = globals[4].split(".")[1];
274-
local = api.helper.filter_locale(locale);
274+
locale = api.helper.filter_locale(locale);
275275
if (locale) {
276276
return locale;
277277
}

0 commit comments

Comments
 (0)