From e9f055259d3c53c65cdecae6ec9017d309c2c189 Mon Sep 17 00:00:00 2001 From: amddg44 Date: Thu, 14 Sep 2023 13:35:42 +0200 Subject: [PATCH] reorderd the urls --- Core/WebCacheManager.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Core/WebCacheManager.swift b/Core/WebCacheManager.swift index faeb75de9c..d9d9c0a69f 100644 --- a/Core/WebCacheManager.swift +++ b/Core/WebCacheManager.swift @@ -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