Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 14, 2024
1 parent 467fc5e commit 3e30027
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ function importData() {
hamburgerElements = createHamburgerMenu();
updateAllTrayDirections();
window.addEventListener('resize', updateAllTrayDirections);
try{
getTrayFromId("0").element.focus();
}
catch{
getTrayFromId("root").element.focus();

}
notifyUser('データのインポートに成功しました。');
} catch (error) {
console.error('Invalid JSON file:', error);
Expand Down

0 comments on commit 3e30027

Please sign in to comment.