Use window to fix photo_clipboard defined check.

master
voussoir 2022-11-05 23:24:20 -07:00
parent 01697d6667
commit f392cb483d
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ function create(photo, view)
photo_card_tags.innerText = tag_names_inner;
photo_card.appendChild(photo_card_tags);
if (photo_clipboard)
if (window.photo_clipboard !== undefined)
{
const clipboard_checkbox = photo_clipboard.give_checkbox(photo_card);
photo_clipboard.apply_check(clipboard_checkbox);