Skip to content

Commit 89e30ef

Browse files
authored
fix(core): Remove os check on data_store_identifier (#11817)
* fix(core): Remove os check on `data_store_identifier` * typo
1 parent a692c89 commit 89e30ef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

crates/tauri/src/webview/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,7 @@ fn main() {
818818
/// Can be used as a replacement for data_directory not being available in WKWebView.
819819
///
820820
/// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17
821-
#[cfg(any(target_os = "macos", target_os = "ios"))]
822-
#[cfg_attr(docsrs, doc(any(target_os = "macos", target_os = "ios")))]
821+
/// - **Windows / Linux / Android**: Unsupported.
823822
#[must_use]
824823
pub fn data_store_identifier(mut self, data_store_identifier: [u8; 16]) -> Self {
825824
self.webview_attributes.data_store_identifier = Some(data_store_identifier);

crates/tauri/src/webview/webview_window.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,7 @@ impl<'a, R: Runtime, M: Manager<R>> WebviewWindowBuilder<'a, R, M> {
922922
/// Can be used as a replacement for data_directory not being available in WKWebView.
923923
///
924924
/// - **macOS / iOS**: Available on macOS >= 14 and iOS >= 17
925-
#[cfg(any(target_os = "macos", target_os = "ios"))]
926-
#[cfg_attr(docsrs, doc(any(target_os = "macos", target_os = "ios")))]
925+
/// - **Windows / Linux / Android**: Unsupported.
927926
#[must_use]
928927
pub fn data_store_identifier(mut self, data_store_identifier: [u8; 16]) -> Self {
929928
self.webview_builder = self

0 commit comments

Comments
 (0)