mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 16:27:31 +00:00
12 lines
277 B
Rust
12 lines
277 B
Rust
use rquickjs::Ctx;
|
|
|
|
pub mod event_source;
|
|
pub mod form;
|
|
pub mod webview;
|
|
|
|
pub fn init(ctx: &Ctx, endpoint_url: String, secret: String) -> rquickjs::Result<()> {
|
|
ctx.globals().set("__serverUrl", endpoint_url)?;
|
|
ctx.globals().set("__serverSecret", secret)?;
|
|
Ok(())
|
|
}
|