feat: remove old async channel for new channel in ric raf web code

This commit is contained in:
Jonathan Kelley committed 2022-02-15 11:03:13 -05:00
1 parent f6df21a34c
commit e43a8a9b6a
4 files changed
+15 -17

No files matched your search

+2 -5
View File
@@ -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 {