mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
browser: panic if callInspector without Inspector
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -152,6 +152,8 @@ pub const Session = struct {
|
|||||||
pub fn callInspector(self: *Session, msg: []const u8) void {
|
pub fn callInspector(self: *Session, msg: []const u8) void {
|
||||||
if (self.inspector) |inspector| {
|
if (self.inspector) |inspector| {
|
||||||
inspector.send(msg, self.env);
|
inspector.send(msg, self.env);
|
||||||
|
} else {
|
||||||
|
@panic("No Inspector");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user