delete logs

This commit is contained in:
Edward Shen 2021-10-24 18:14:44 -07:00
parent 8ea15ef395
commit fe0c0c8737
Signed by: edward
GPG key ID: 19182661E818369F
2 changed files with 0 additions and 7 deletions

View file

@ -117,8 +117,6 @@ async fn fetch_resources(request_uri: Uri, url: String) -> Result<()> {
.object_store("decrypted data") .object_store("decrypted data")
.unwrap(); .unwrap();
log!(line!());
let decrypted_object = match &decrypted { let decrypted_object = match &decrypted {
DecryptedData::String(s) => IdbObject::new() DecryptedData::String(s) => IdbObject::new()
.string() .string()
@ -152,7 +150,6 @@ async fn fetch_resources(request_uri: Uri, url: String) -> Result<()> {
.data(blob), .data(blob),
}; };
log!(line!());
let put_action = transaction let put_action = transaction
.put_with_key( .put_with_key(
&Object::from(decrypted_object), &Object::from(decrypted_object),
@ -169,7 +166,6 @@ async fn fetch_resources(request_uri: Uri, url: String) -> Result<()> {
)); ));
put_action.set_onerror(Some( put_action.set_onerror(Some(
Closure::wrap(Box::new(|e| { Closure::wrap(Box::new(|e| {
log!(line!());
log!(e); log!(e);
}) as Box<dyn Fn(Event)>) }) as Box<dyn Fn(Event)>)
.into_js_value() .into_js_value()
@ -180,7 +176,6 @@ async fn fetch_resources(request_uri: Uri, url: String) -> Result<()> {
db_open_req.set_onsuccess(Some(on_success.into_js_value().unchecked_ref())); db_open_req.set_onsuccess(Some(on_success.into_js_value().unchecked_ref()));
db_open_req.set_onerror(Some( db_open_req.set_onerror(Some(
Closure::wrap(Box::new(|e| { Closure::wrap(Box::new(|e| {
log!(line!());
log!(e); log!(e);
}) as Box<dyn Fn(Event)>) }) as Box<dyn Fn(Event)>)
.into_js_value() .into_js_value()
@ -191,7 +186,6 @@ async fn fetch_resources(request_uri: Uri, url: String) -> Result<()> {
let _ = db.create_object_store("decrypted data").unwrap(); let _ = db.create_object_store("decrypted data").unwrap();
}) as Box<dyn FnMut(Event)>); }) as Box<dyn FnMut(Event)>);
db_open_req.set_onupgradeneeded(Some(on_upgrade.into_js_value().unchecked_ref())); db_open_req.set_onupgradeneeded(Some(on_upgrade.into_js_value().unchecked_ref()));
log!(&db_open_req);
} }
Ok(resp) if resp.status() == StatusCode::NOT_FOUND => { Ok(resp) if resp.status() == StatusCode::NOT_FOUND => {
create_not_found_ui(); create_not_found_ui();

View file

@ -157,7 +157,6 @@ function createMultiMediaPasteUi(tag, expiration, data, downloadMessage) {
mainEle.appendChild(downloadEle); mainEle.appendChild(downloadEle);
bodyEle.appendChild(mainEle); bodyEle.appendChild(mainEle);
} }
// Exported to main.rs // Exported to main.rs