メニューデフォルト表示に変更
This commit is contained in:
@@ -38,7 +38,7 @@ export const CurrentTrainProvider = ({ children }) => {
|
||||
setCurrentTrainLoading("success");
|
||||
})
|
||||
.catch(() => {
|
||||
alert("現在の全在線列車取得エラー/再取得します");
|
||||
//alert("現在の全在線列車取得エラー/再取得します");
|
||||
fetch(
|
||||
"https://script.google.com/macros/s/AKfycby9Y2-Bm75J_WkbZimi7iS8v5r9wMa9wtzpdwES9sOGF4i6HIYEJOM60W6gM1gXzt1o/exec",
|
||||
HeaderConfig
|
||||
@@ -57,6 +57,9 @@ export const CurrentTrainProvider = ({ children }) => {
|
||||
});
|
||||
});
|
||||
};
|
||||
const inject = (i) => {
|
||||
webview.current?.injectJavaScript(i);
|
||||
};
|
||||
|
||||
useEffect(getCurrentTrain, []); //初回だけ現在の全在線列車取得
|
||||
|
||||
@@ -72,6 +75,7 @@ export const CurrentTrainProvider = ({ children }) => {
|
||||
currentTrainLoading,
|
||||
setCurrentTrainLoading,
|
||||
getCurrentTrain,
|
||||
inject,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
Reference in New Issue
Block a user