Fix bug in paths
This commit is contained in:
parent
c2a3647303
commit
3dd3eab55e
|
@ -43,7 +43,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"
|
||||
|
||||
[[package]]
|
||||
name = "elmojinput"
|
||||
name = "emojinput"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"web-view",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "elmojinput"
|
||||
name = "emojinput"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@ use web_view::*;
|
|||
|
||||
fn main() {
|
||||
#[cfg(debug_assertions)]
|
||||
let js = include_str!("../../elmoji/js/main.js");
|
||||
let js = include_str!("../js/main.js");
|
||||
#[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>",
|
||||
&format!("<script>{}</script>", js),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue