Skip to content

Commit

Permalink
reorderd the urls
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Sep 14, 2023
1 parent 3fa53c8 commit e9f0552
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Core/WebCacheManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,9 @@ public class WebCacheManager {

let databaseURLs = [
FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask)[0]
.appendingPathComponent("WebKit/WebsiteData/ResourceLoadStatistics/observations.db",
FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask)[0]
.appendingPathComponent("WebKit/\(bundleID)/WebsiteData/ResourceLoadStatistics/observations.db"),
)
.appendingPathComponent("WebKit/WebsiteData/ResourceLoadStatistics/observations.db"),
FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask)[0]
.appendingPathComponent("WebKit/\(bundleID)/WebsiteData/ResourceLoadStatistics/observations.db")
]

return databaseURLs.lazy.compactMap({ try? DatabasePool(path: $0.absoluteString) }).first
Expand Down

0 comments on commit e9f0552

Please sign in to comment.