mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-23 19:49:58 -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
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
use js_sys::Date;
|
use js_sys::Date;
|
||||||
use wasm_bindgen::JsValue;
|
|
||||||
use web_sys::{window, Storage};
|
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 {
|
pub fn get_storage() -> Storage {
|
||||||
window()
|
window()
|
||||||
.expect("No Window Present")
|
.expect("No Window Present")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user