Skip to content

Commit 71cb1e2

Browse files
authored
docs: update .disable_javascript() docs (#13013)
The initial version of the MR that introduced this to Wry (tauri-apps/wry#1496) had no Android implementation, but it has been added in a later version of the MR, so the comment is no longer valid.
1 parent b459f1d commit 71cb1e2

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

crates/tauri/src/webview/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -894,10 +894,6 @@ fn main() {
894894
}
895895

896896
/// Whether JavaScript should be disabled.
897-
///
898-
/// ## Platform-specific
899-
///
900-
/// - **Android:** Not implemented yet.
901897
#[must_use]
902898
pub fn disable_javascript(mut self) -> Self {
903899
self.webview_attributes.javascript_disabled = true;

crates/tauri/src/webview/webview_window.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1010,10 +1010,6 @@ impl<R: Runtime, M: Manager<R>> WebviewWindowBuilder<'_, R, M> {
10101010
}
10111011

10121012
/// Whether JavaScript should be disabled.
1013-
///
1014-
/// ## Platform-specific
1015-
///
1016-
/// - **Android:** Not implemented yet.
10171013
#[must_use]
10181014
pub fn disable_javascript(mut self) -> Self {
10191015
self.webview_builder = self.webview_builder.disable_javascript();

0 commit comments

Comments
 (0)