Use window to fix photo_clipboard defined check.

This commit is contained in:
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

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);