Updated URL in configuration to point directly to the HA portal instead of the dashboard
This commit is contained in:
@@ -13,7 +13,7 @@ pub fn run() {
|
||||
let show = MenuItem::with_id(app, "show", "Open", true, None::<&str>)?;
|
||||
let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?;
|
||||
let menu = Menu::with_items(app, &[&show, &quit])?;
|
||||
let url = WebviewUrl::External("https://helpalert.wvumedicine.org".parse().unwrap());
|
||||
let url = WebviewUrl::External("https://helpalert.wvumedicine.org/ha".parse().unwrap());
|
||||
let w_handle = app.handle().clone();
|
||||
WebviewWindowBuilder::new(app, "main", url)
|
||||
.title("WVU Medicine Help Alert")
|
||||
@@ -25,7 +25,7 @@ pub fn run() {
|
||||
let _ = w.eval(
|
||||
"document.documentElement.innerHTML = \
|
||||
'<head><style>*{margin:0;padding:0}html,body{height:100%;overflow:hidden}iframe{width:100%;height:100%;border:none}</style></head>' + \
|
||||
'<body><iframe src=\"https://helpalert.wvumedicine.org/PinPoint/helpalert.html\"></iframe></body>';"
|
||||
'<body><iframe src=\"https://helpalert.wvumedicine.org/ha\"></iframe></body>';"
|
||||
);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user