Skip to content

Commit

Permalink
展示用モードのフラグを取得する関数を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Feb 29, 2024
1 parent 8ee666a commit c63eb6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/exhibitionMode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const isExhibitionMode = (): boolean => {
const params = new URLSearchParams(window.location.search)
const exhibition = params.get("exhibition")

// `exhibition`が定義されていればtrueを返す
return exhibition !== null
}

0 comments on commit c63eb6a

Please sign in to comment.