Skip to content

Commit 0f75a26

Browse files
ahmedAlaaInstabugHeshamMegid
authored andcommitted
fix: Unexpected token (??) on old version
1 parent a843712 commit 0f75a26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/Instabug.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ export const init = (config: InstabugConfig) => {
6464
captureUnhandledRejections();
6565

6666
// Default networkInterceptionMode to JavaScript
67-
config.networkInterceptionMode ??= NetworkInterceptionMode.javascript;
67+
if (!config.networkInterceptionMode) {
68+
config.networkInterceptionMode = NetworkInterceptionMode.javascript;
69+
}
6870

6971
if (config.networkInterceptionMode === NetworkInterceptionMode.javascript) {
7072
NetworkLogger.setEnabled(true);

0 commit comments

Comments
 (0)