/**
* Share an image to all players when you have an image URL
* Author: @Krishmero#1792
*/
let imagePopup = (imageUrl) => {
// Display the image popout and share it.
const ip = new ImagePopout(imageUrl);
ip.render(true);
ip.shareImage();
};
let chatDialog = (imageUrl) => {
ChatMessage.create({
user: game.user._id,
content: ``,
type: CONST.CHAT_MESSAGE_TYPES.OOC
});
};
let selectOptions = game.user.isGM ? `
` : '';
new Dialog({
title: `Share Image via URL`,
content: `
<form>
${selectOptions}