mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(core): Remove os check on data_store_identifier (#11817)
* fix(core): Remove os check on `data_store_identifier` * typo
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user