Skip to main content

Mountain/Vine/Server/Notification/
WebviewReady.rs

1#![allow(non_snake_case)]
2//! Cocoon → Mountain `WebviewReady` notification.
3//! Fires when a webview the extension owns has finished loading its
4//! entry HTML. Log-only today - Sky's webview shim handles the DOM-side
5//! readiness independently. Kept named so the wire method is
6//! observable and doesn't fall to `notif-drop`.
7
8use serde_json::Value;
9
10use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
11
12pub async fn WebviewReady(_Service:&MountainVinegRPCService, Parameter:&Value) {
13	dev_log!(
14		"grpc",
15		"[MountainVinegRPCService] Webview ready: handle={}",
16		Parameter.get("handle").and_then(Value::as_str).unwrap_or("?")
17	);
18}