wasm fixes
This commit is contained in:
@@ -5,7 +5,7 @@ cfg_if! {
|
||||
use js_sys::Date;
|
||||
|
||||
pub fn get_timestamp() -> u64 {
|
||||
if utils::is_browser() {
|
||||
if is_browser() {
|
||||
return (Date::now() * 1000.0f64) as u64;
|
||||
} else {
|
||||
panic!("WASM requires browser environment");
|
||||
|
||||
Reference in New Issue
Block a user