fix: fix some build errors
This commit is contained in:
@ -546,7 +546,13 @@ pub async fn open_image_viewer(
|
||||
builder = builder.position(x, y);
|
||||
}
|
||||
|
||||
builder.build().map_err(|e| e.to_string())?;
|
||||
let viewer = builder.build().map_err(|e| e.to_string())?;
|
||||
viewer.eval(r#"(function(){
|
||||
var s=document.createElement('style');
|
||||
s.textContent='::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}*{scrollbar-width:none!important}';
|
||||
var apply=function(){if(document.head)document.head.appendChild(s)};
|
||||
if(document.head)apply();else document.addEventListener('DOMContentLoaded',apply);
|
||||
})();"#).ok();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user