Skip to content

Commit

Permalink
Fixed compatibility with libWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Mar 26, 2021
1 parent a1c5984 commit 7f477a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.4.2
* Compatibility: Fixed compatibility with libWrapper and colorsettings in Minimal UI

### 0.4.1
* Bugfix: Integrated dependencies as a fallback for missing ColorSettings module

Expand Down
2 changes: 1 addition & 1 deletion lib/colorsettings/colorSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function runInit() {
};

if (typeof libWrapper === "function") {
libWrapper.register('colorsettings', 'SettingsConfig.prototype._onClickSubmenu', onClickSubmenuWrapper, 'OVERRIDE');
libWrapper.register('minimal-ui', 'SettingsConfig.prototype._onClickSubmenu', onClickSubmenuWrapper, 'OVERRIDE');
} else {
// IMPORTANT: most likely to have compatibility issues with other modules
SettingsConfig.prototype._onClickSubmenu = onClickSubmenuWrapper;
Expand Down
5 changes: 2 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"title": "Minimal UI",
"author": "JeansenVaars#2857",
"description": "Minimal UI reduces size of Foundry interface and allows hiding or collapsing specific parts.",
"version": "0.4.1",
"version": "0.4.2",
"minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "0.7.9",
"esmodules": [ "lib/colorsettings/colorSetting.js" ],
"esmodules": [ "lib/colorsettings/colorSetting.js" ],
"styles": [ "minimalui.css", "lib/colorsettings/css/colorpicker.css" ],
"scripts": [ "minimalui.js" ],
"styles": [ "minimalui.css" ],
"url": "https://github.com/saif-ellafi/foundryvtt-minimal-ui.git",
"manifest": "https://raw.githubusercontent.com/saif-ellafi/foundryvtt-minimal-ui/main/module.json",
"download": "https://github.com/saif-ellafi/foundryvtt-minimal-ui/archive/main.zip"
Expand Down

0 comments on commit 7f477a6

Please sign in to comment.