toast
This commit is contained in:
@@ -8,15 +8,15 @@ import {
|
||||
export type NavigateTo = PathType | -1 | 0;
|
||||
|
||||
export const goBackWebview = (goBack: () => void) => {
|
||||
if (!window.ReactNativeWebView) {
|
||||
if (window.history.state?.idx > 0) {
|
||||
goBack();
|
||||
return;
|
||||
} else {
|
||||
window.close();
|
||||
}
|
||||
if(window.history.state?.idx > 0){
|
||||
goBack();
|
||||
return;
|
||||
}
|
||||
else{
|
||||
window.close();
|
||||
}
|
||||
return;
|
||||
|
||||
};
|
||||
|
||||
export const useNavigate = () => {
|
||||
|
||||
Reference in New Issue
Block a user