mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
remove navigate_to_path function
This commit is contained in:
parent
7559aae9d0
commit
6d0aae2c92
@ -12,16 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
use js_sys::Date;
|
||||
use wasm_bindgen::JsValue;
|
||||
use web_sys::{window, Storage};
|
||||
|
||||
pub fn navigate_to_path(path: &str) -> Result<(), JsValue> {
|
||||
window()
|
||||
.expect("No window present")
|
||||
.location()
|
||||
.set_pathname(path)
|
||||
}
|
||||
|
||||
pub fn get_storage() -> Storage {
|
||||
window()
|
||||
.expect("No Window Present")
|
||||
|
Loading…
x
Reference in New Issue
Block a user