Skip to content

Commit

Permalink
Specific image while hovering
Browse files Browse the repository at this point in the history
code clean-up
  • Loading branch information
Eriku33 authored Aug 19, 2022
1 parent be175d0 commit fcb4b10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions image-hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,18 +425,18 @@ const renderHoverSetting = async (app, html, data) => {
let specificImageStatus = app.token.getFlag('image-hover', 'specificArt') ? app.token.getFlag('image-hover', 'specificArt') : "path/image.png";

data.hideHoverStatus = hideImageStatus;
data.specificHoverStatus = specificImageStatus;
data.specificArtStatus = specificImageStatus;

const nav = html.find(`div[data-tab="appearance"]`);
const contents = await renderTemplate('modules/image-hover/templates/image-hover-token-config.html', data);
nav.append(contents);
app.setPosition({ height: 'auto' });

html.find("button.my-picker-button").click(async () => {
html.find("button.image-hover-picker-button").click(async () => {
new FilePicker({
type: "imagevideo",
callback: async (path) => {
html.find("input.specific-image").val(path);
html.find("input.specific-image-hover").val(path);
}}).render();
})
}
Expand Down

0 comments on commit fcb4b10

Please sign in to comment.