Fix android/ios desktop builds, move type from native over
This commit is contained in:
3 files changed
+31
-35
No files matched your search
@@ -192,23 +192,3 @@ impl WriteMutations for MutationState {
|
||||
self.channel.push_root(id.0 as _);
|
||||
}
|
||||
}
|
||||
|
||||
/// A synchronous response to a browser event which may prevent the default browser's action
|
||||
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
|
||||
#[derive(Default)]
|
||||
pub struct SynchronousEventResponse {
|
||||
#[cfg(feature = "serialize")]
|
||||
#[serde(rename = "preventDefault")]
|
||||
prevent_default: bool,
|
||||
}
|
||||
|
||||
impl SynchronousEventResponse {
|
||||
/// Create a new SynchronousEventResponse
|
||||
#[allow(unused)]
|
||||
pub fn new(prevent_default: bool) -> Self {
|
||||
Self {
|
||||
#[cfg(feature = "serialize")]
|
||||
prevent_default,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user