🎨 [jquery] Carga la librería según versión
This commit is contained in:
parent
a28269796a
commit
e7ca8f53b0
3 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ pub_handle!(MODULE_JQUERY);
|
||||||
include!(concat!(env!("OUT_DIR"), "/jquery.rs"));
|
include!(concat!(env!("OUT_DIR"), "/jquery.rs"));
|
||||||
|
|
||||||
const JQUERY_PARAM: &str = "jquery.add";
|
const JQUERY_PARAM: &str = "jquery.add";
|
||||||
const JQUERY_SOURCE: &str = "/jquery/js/jquery.min.js";
|
const JQUERY_SOURCE: &str = "/jquery/3.6.0/jquery.min.js";
|
||||||
|
|
||||||
pub struct JQuery;
|
pub struct JQuery;
|
||||||
|
|
||||||
|
|
@ -26,7 +26,6 @@ impl JQuery {
|
||||||
_ => {
|
_ => {
|
||||||
rcx.alter(ContextOp::AddJavaScript(
|
rcx.alter(ContextOp::AddJavaScript(
|
||||||
JavaScript::located(JQUERY_SOURCE)
|
JavaScript::located(JQUERY_SOURCE)
|
||||||
.with_version("3.6.0")
|
|
||||||
.with_weight(isize::MIN)
|
.with_weight(isize::MIN)
|
||||||
.with_mode(ModeJS::Normal),
|
.with_mode(ModeJS::Normal),
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue