ぜのぜ

しりとりしようぜのぜのぜのぜ

672日目

日記

数年ぶりにWeb小説を読み漁ってる。内容自体もそうだけど、表現の仕方とかユーモアのセンス、漢字の開き方、句読点の打ち方などなど自分に合う人を見つけるのが楽しい。

今日書いたコード

ファイルを編集中のときだけbeforeunloadで確認するようにした · Gurrium/monkey-patcx@1d30583 · GitHub

感想

It is recommended that developers listen for beforeunload only in this scenario, and only when they actually have unsaved changes, so as to minimize the effect on performance. See the Examples section below for an example of this. https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event#usage_notes