From 89e30ef20d356d5f7cf9d49cc4b179bd327db6dc Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Tue, 3 Dec 2024 00:32:02 +0100 Subject: [PATCH] fix(core): Remove os check on `data_store_identifier` (#11817) * fix(core): Remove os check on `data_store_identifier` * typo --- crates/tauri/src/webview/mod.rs | 3 +-- crates/tauri/src/webview/webview_window.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/tauri/src/webview/mod.rs b/crates/tauri/src/webview/mod.rs index 5600a46626cd..fbbb539b9aea 100644 --- a/crates/tauri/src/webview/mod.rs +++ b/crates/tauri/src/webview/mod.rs @@ -818,8 +818,7 @@ fn main() { /// Can be used as a replacement for data_directory not being available in WKWebView. /// /// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17 - #[cfg(any(target_os = "macos", target_os = "ios"))] - #[cfg_attr(docsrs, doc(any(target_os = "macos", target_os = "ios")))] + /// - **Windows / Linux / Android**: Unsupported. #[must_use] pub fn data_store_identifier(mut self, data_store_identifier: [u8; 16]) -> Self { self.webview_attributes.data_store_identifier = Some(data_store_identifier); diff --git a/crates/tauri/src/webview/webview_window.rs b/crates/tauri/src/webview/webview_window.rs index 23a00eb17079..ec4aebbd2067 100644 --- a/crates/tauri/src/webview/webview_window.rs +++ b/crates/tauri/src/webview/webview_window.rs @@ -922,8 +922,7 @@ impl<'a, R: Runtime, M: Manager> WebviewWindowBuilder<'a, R, M> { /// Can be used as a replacement for data_directory not being available in WKWebView. /// /// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17 - #[cfg(any(target_os = "macos", target_os = "ios"))] - #[cfg_attr(docsrs, doc(any(target_os = "macos", target_os = "ios")))] + /// - **Windows / Linux / Android**: Unsupported. #[must_use] pub fn data_store_identifier(mut self, data_store_identifier: [u8; 16]) -> Self { self.webview_builder = self