feat: remove old async channel for new channel in ric raf web code
This commit is contained in:
1 parent
f6df21a34c
commit
e43a8a9b6a
4 files changed
+15
-17
No files matched your search
@@ -87,14 +87,11 @@ impl WebsysDom {
|
||||
}
|
||||
});
|
||||
|
||||
// a match here in order to avoid some error during runtime browser test
|
||||
let document = load_document();
|
||||
let root = match document.get_element_by_id(&cfg.rootname) {
|
||||
Some(root) => root,
|
||||
// a match here in order to avoid some error during runtime browser test
|
||||
None => {
|
||||
let body = document.create_element("body").ok().unwrap();
|
||||
body
|
||||
}
|
||||
None => document.create_element("body").ok().unwrap(),
|
||||
};
|
||||
|
||||
Self {
|
||||
|
||||
Reference in new issue
Block a user