Use window to fix photo_clipboard defined check.
This commit is contained in:
parent
01697d6667
commit
f392cb483d
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ function create(photo, view)
|
||||||
photo_card_tags.innerText = tag_names_inner;
|
photo_card_tags.innerText = tag_names_inner;
|
||||||
photo_card.appendChild(photo_card_tags);
|
photo_card.appendChild(photo_card_tags);
|
||||||
|
|
||||||
if (photo_clipboard)
|
if (window.photo_clipboard !== undefined)
|
||||||
{
|
{
|
||||||
const clipboard_checkbox = photo_clipboard.give_checkbox(photo_card);
|
const clipboard_checkbox = photo_clipboard.give_checkbox(photo_card);
|
||||||
photo_clipboard.apply_check(clipboard_checkbox);
|
photo_clipboard.apply_check(clipboard_checkbox);
|
||||||
|
|
Loading…
Reference in a new issue