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:
Fabian-Lars
2024-12-03 00:32:02 +01:00
committed by GitHub
parent a692c8937f
commit 89e30ef20d
2 changed files with 2 additions and 4 deletions

View File

@@ -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);

View File

@@ -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