From 90e7ce2d156270e80dda5e21186c4e10678a48ab Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Thu, 7 Sep 2023 15:59:01 +0200 Subject: [PATCH] Fix canister id in test app (#1857) The test app canister id replacement mechanism broke (presumably quite a while ago). This fixes PR fixes it. --- demos/test-app/lib.rs | 6 +++--- demos/test-app/src/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/test-app/lib.rs b/demos/test-app/lib.rs index 2c0e0c29eb..89e88fcab6 100644 --- a/demos/test-app/lib.rs +++ b/demos/test-app/lib.rs @@ -216,10 +216,10 @@ lazy_static! { let canister_id = api::id(); let index_html = include_str!("dist/index.html"); - // the string we are replacing here is inserted by webpack during the front-end build + // the string we are replacing here is inserted by vite during the front-end build let index_html = index_html.replace( - r#""#, - &format!(r#""#).to_string() + r#""#, + &format!(r#""#).to_string() ); index_html }; diff --git a/demos/test-app/src/index.html b/demos/test-app/src/index.html index fa20541c15..9679c40bca 100644 --- a/demos/test-app/src/index.html +++ b/demos/test-app/src/index.html @@ -62,7 +62,7 @@

Contact the IC

- +