remove navigate_to_path function

This commit is contained in:
Jeremy Wall 2023-01-07 17:28:37 -05:00
parent 7559aae9d0
commit 6d0aae2c92

View File

@ -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")