use crate::webview::handlers::RegisterWryEvent;
use bevy::prelude::{App, Entity, Event, Plugin, Reflect};
#[derive(Eq, PartialEq, Clone, Event, Reflect)]
pub struct DocumentTitleChanged {
pub webview_entity: Entity,
pub document_title: String,
}
pub(crate) struct DocumentTitlePlugin;
impl Plugin for DocumentTitlePlugin {
fn build(&self, app: &mut App) {
app.register_wry_event::<DocumentTitleChanged>();
}
}