Fix bug in paths

This commit is contained in:
Thomas Forgione 2022-02-05 21:23:02 +01:00
parent c2a3647303
commit 3dd3eab55e
3 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@ -43,7 +43,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
[[package]] [[package]]
name = "elmojinput" name = "emojinput"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"web-view", "web-view",

View File

@ -1,5 +1,5 @@
[package] [package]
name = "elmojinput" name = "emojinput"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View File

@ -5,11 +5,11 @@ use web_view::*;
fn main() { fn main() {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
let js = include_str!("../../elmoji/js/main.js"); let js = include_str!("../js/main.js");
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
let js = include_str!("../../elmoji/js/main.min.js"); let js = include_str!("../js/main.min.js");
let html_content = include_str!("../../elmoji/index.html").replace( let html_content = include_str!("../index.html").replace(
"<script src=\"js/main.js\"></script>", "<script src=\"js/main.js\"></script>",
&format!("<script>{}</script>", js), &format!("<script>{}</script>", js),
); );