add points
This commit is contained in:
1 parent
ebf254b686
commit
279b5886b1
15 files changed
+916
-14
No files matched your search
@@ -1,3 +1,5 @@
|
||||
use tauri::Manager;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
@@ -9,6 +11,16 @@ pub fn run() {
|
||||
.build(),
|
||||
)?;
|
||||
}
|
||||
|
||||
let webview = app.get_webview_window("main").unwrap();
|
||||
webview.eval("
|
||||
document.addEventListener('click', (ev) => {
|
||||
if (ev.target?.href && ev.target.matches('a') && ev.target.href.startsWith('https://resources.allsetlearning.com/')) {
|
||||
ev.preventDefault();
|
||||
}
|
||||
})
|
||||
")?;
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.run(tauri::generate_context!())
|
||||
|
||||
Reference in new issue
Block a user