Skip to content

Commit 97aff9e

Browse files
authored
[Dynamic Links] Reduce memory stress on WebKit API (#8847)
1 parent 7aebb8f commit 97aff9e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

FirebaseDynamicLinks/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# v8.9.0
22
- [fixed] Fixed Shortlink regression involving underscores and dashes introduced in 8.8.0. (#8786)
3+
- [fixed] Reduce memory stress on `WebKit` API. #8847
34

45
# v8.8.0
56
- [fixed] Firebase dynamic links with custom domain will only work if the custom domain has a trailing '/'. (#7087)

FirebaseDynamicLinks/Sources/FIRDLDefaultRetrievalProcessV2.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ - (void)fetchLocaleFromWebView {
245245
if (_jsExecutor) {
246246
return;
247247
}
248-
NSString *jsString = @"window.generateFingerprint=function(){try{var "
249-
@"languageCode=navigator.languages?navigator.languages[0]:navigator."
250-
@"language;return languageCode;}catch(b){return"
251-
"}};";
248+
NSString *jsString = @"window.generateFingerprint=()=>navigator.language||''";
252249
_jsExecutor = [[FIRDLJavaScriptExecutor alloc] initWithDelegate:self script:jsString];
253250
}
254251

0 commit comments

Comments
 (0)