Skip to content

Commit

Permalink
picker for logo and client may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Feb 20, 2022
1 parent 92c10a9 commit e1184ae
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.4.20
* Bugfix: Logo image setting has now a filepicker to choose logo easily
* Bugfix: Fixed a WebRTC error where rtc client might have not yet loaded

### 1.4.19
* Bugfix: Switching Camera Behavior modes no longer requires a full refresh
* Bugfix: Removed ghost window when a player disables camera while another has it in floating mode (Thanks G.O.D. for reporting)
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"version": "1.4.19",
"version": "1.4.20",
"minimumCoreVersion": "9.233",
"compatibleCoreVersion": "9",
"dependencies": [
Expand Down Expand Up @@ -42,6 +42,6 @@
],
"url": "https://github.com/saif-ellafi/foundryvtt-minimal-ui.git",
"manifest": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/latest/download/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.4.19/foundryvtt-minimal-ui_1.4.19.zip",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/releases/download/1.4.20/foundryvtt-minimal-ui_1.4.20.zip",
"changelog": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/blob/main/CHANGELOG.md"
}
2 changes: 1 addition & 1 deletion modules/component/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class MinimalUICamera {
MinimalUICamera.updateCameraSettings();
});
Hooks.on('rtcSettingsChanged', function(act, cl) {
if (cl.client.users[game.user.id].hidden !== undefined)
if (cl.client?.users[game.user.id]?.hidden !== undefined)
game.webrtc.render();
});
}
Expand Down
1 change: 1 addition & 0 deletions modules/component/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default class MinimalUILogo {
scope: 'world',
config: true,
type: String,
filePicker: 'file',
default: "icons/fvtt.png",
onChange: _ => {
MinimalUILogo.updateImageSrc(game.settings.get('minimal-ui', 'foundryLogoImage'));
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foundryvtt-minimal-ui",
"version": "1.4.19",
"version": "1.4.20",
"description": "Minimal UI allows customizing Foundry interface, by hiding, collapsing or resizing specific parts.",
"main": "minimalui.js",
"scripts": {
Expand Down

0 comments on commit e1184ae

Please sign in to comment.