Change path references from absolute to relative (#128)
- blades.js - toggleable clock status graphic visible again on clock's actor sheet. - blades-clock-sheet.js - clock status graphic visible again on clock's actor token.
This commit is contained in:
parent
33f3e12cef
commit
c0599ced37
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ export class BladesClockSheet extends BladesSheet {
|
|||
|
||||
/** @override */
|
||||
async _updateObject(event, formData) {
|
||||
let image_path = `/systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${formData['data.type']}-${formData['data.value']}.svg`;
|
||||
let image_path = `systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${formData['data.type']}-${formData['data.value']}.svg`;
|
||||
formData['img'] = image_path;
|
||||
formData['token.img'] = image_path;
|
||||
let data = [];
|
||||
|
|
|
@ -245,7 +245,7 @@ Hooks.once("init", async function() {
|
|||
|
||||
// Label for 0
|
||||
html += `<label class="clock-zero-label" for="clock-0-${uniq_id}}"><i class="fab fa-creative-commons-zero nullifier"></i></label>`;
|
||||
html += `<div id="blades-clock-${uniq_id}" class="blades-clock clock-${type} clock-${type}-${current_value}" style="background-image:url('/systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${type}-${current_value}.svg');">`;
|
||||
html += `<div id="blades-clock-${uniq_id}" class="blades-clock clock-${type} clock-${type}-${current_value}" style="background-image:url('systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${type}-${current_value}.svg');">`;
|
||||
|
||||
let zero_checked = (parseInt(current_value) === 0) ? 'checked="checked"' : '';
|
||||
html += `<input type="radio" value="0" id="clock-0-${uniq_id}}" name="${parameter_name}" ${zero_checked}>`;
|
||||
|
|
Reference in a new issue