Skip to content

Commit

Permalink
fix(core): Remove os check on data_store_identifier (tauri-apps#11817)
Browse files Browse the repository at this point in the history
* fix(core): Remove os check on `data_store_identifier`

* typo
  • Loading branch information
FabianLars authored Dec 2, 2024
1 parent a692c89 commit 89e30ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crates/tauri/src/webview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions crates/tauri/src/webview/webview_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,7 @@ impl<'a, R: Runtime, M: Manager<R>> 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
Expand Down

0 comments on commit 89e30ef

Please sign in to comment.