Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 803c8c0

Browse files
author
Eric Koleda
committed
Fix module detection.
1 parent f558aac commit 803c8c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/OAuth1.gs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ function getCallbackUrl(scriptId) {
114114
if (module) {
115115
module.exports = {
116116
createService: createService,
117-
getCallbackUrl: getCallbackUrl
117+
getCallbackUrl: getCallbackUrl,
118+
MemoryProperties: MemoryProperties
118119
};
119120
}
120121

src/OAuth1.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function getCallbackUrl(scriptId) {
4444
'https://script.google.com/macros/d/%s/usercallback', scriptId);
4545
}
4646

47-
if (module) {
47+
if (typeof module != 'undefined') {
4848
module.exports = {
4949
createService: createService,
5050
getCallbackUrl: getCallbackUrl,

0 commit comments

Comments
 (0)