Skip to content

Commit 16b5914

Browse files
committed
Fix exports-related error for non-Node users.
This closes KartikTalwar#328.
1 parent ab32869 commit 16b5914

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gmail.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,5 +2656,7 @@ if (typeof(window) !== "undefined" && !window.Gmail) {
26562656
}
26572657

26582658
// make class accessible to require()-users.
2659-
exports = exports || {};
2660-
exports.Gmail = GmailClass;
2659+
if (typeof(exports) !== "undefined") {
2660+
exports.Gmail = GmailClass;
2661+
}
2662+

0 commit comments

Comments
 (0)