pub fn load_credentials() -> (String, String, String) {
    let window = unwrap!(web_sys::window(), "window");
    let ls = unwrap!(unwrap!(window.local_storage()));
    let empty1 = "".to_string();
    let empty2 = "".to_string();
    let empty3 = "".to_string();
    let api_owner = unwrap!(ls.get_item("api_owner")).unwrap_or(empty1);
    let api_uid = unwrap!(ls.get_item("api_uid")).unwrap_or(empty2);
    let api_key = unwrap!(ls.get_item("api_key")).unwrap_or(empty3);
    //return
    (api_owner, api_uid, api_key)
}
///load credentials from local storage, returns tuple with 3 values
load credentials from local storage, returns tuple with 3 values
load credentials from local storage returns tuple with 3 values
pub fn load_credentials() -> (String, String, String) {
    let window = unwrap!(web_sys::window(), "window");
    let ls = unwrap!(unwrap!(window.local_storage()));
    let empty1 = "".to_string();
    let empty2 = "".to_string();
    let empty3 = "".to_string();
    let api_owner = unwrap!(ls.get_item("api_owner")).unwrap_or(empty1);
    let api_uid = unwrap!(ls.get_item("api_uid")).unwrap_or(empty2);
    let api_key = unwrap!(ls.get_item("api_key")).unwrap_or(empty3);
    //return
    (api_owner, api_uid, api_key)
}
pub fn load_credentials ( ) -> ( String , String , String ) { let window = unwrap ! ( web_sys window ( ) " " ) ; let ls = unwrap ! ( unwrap ( window local_storage ( ) ) ) ; let empty1 = " " . to_string ( ) ; let empty2 = " " . to_string ( ) ; let empty3 = " " . to_string ( ) ; let api_owner = unwrap ! ( ls get_item ( " " ) ) . unwrap_or ( empty1 ) ; let api_uid = unwrap ! ( ls get_item ( " " ) ) . unwrap_or ( empty2 ) ; let api_key = unwrap ! ( ls get_item ( " " ) ) . unwrap_or ( empty3 ) ; //return ( api_owner , api_uid , api_key ) }
load credentials from local storage, returns tuple with 3 values
load credentials from local storage returns tuple with 3 values