Skip to content

Commit

Permalink
load redistributables in web app
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Dec 22, 2023
1 parent 706714c commit 78ddcdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions core/src/modules/overview.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::borrow::Cow;

use workflow_core::runtime::is_wasm;
use egui::load::Bytes;
use kaspa_metrics_core::{Metric,MetricGroup};
use egui_plot::{
Expand Down Expand Up @@ -188,10 +188,10 @@ impl Overview {
});

if let Some(release) = core.release.as_ref() {
if release.version == crate::app::VERSION {
if is_wasm() || release.version == crate::app::VERSION {
CollapsingHeader::new(i18n("Redistributables"))
.id_source("redistributables")
.default_open(false)
.default_open(true)
.show(ui, |ui| {
release.assets.iter().for_each(|asset| {
Hyperlink::from_label_and_url(
Expand Down
1 change: 0 additions & 1 deletion core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ impl Runtime {
metrics_service.clone(),
block_dag_monitor_service.clone(),
market_monitor_service.clone(),
#[cfg(not(target_arch = "wasm32"))]
update_monitor_service.clone(),
]);

Expand Down
4 changes: 1 addition & 3 deletions core/src/runtime/services/update_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ impl Service for UpdateMonitorService {
if !self.is_enabled.load(Ordering::Relaxed) {
continue;
}

#[cfg(not(target_arch = "wasm32"))]

let _ = check_version().await;
},
msg = this.as_ref().service_events.receiver.recv().fuse() => {
Expand All @@ -69,7 +68,6 @@ impl Service for UpdateMonitorService {
UpdateMonitorEvents::Enable => {
if !self.is_enabled.load(Ordering::Relaxed) {
self.is_enabled.store(true, Ordering::Relaxed);
#[cfg(not(target_arch = "wasm32"))]
let _ = check_version().await;
}
}
Expand Down

0 comments on commit 78ddcdc

Please sign in to comment.