Skip to content

Commit

Permalink
Fix infinite tab bug (Thanks Ard!). Move repo under maintenance team
Browse files Browse the repository at this point in the history
  • Loading branch information
cswendrowski committed Nov 30, 2020
1 parent f2c4418 commit 25ffc2b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
16 changes: 8 additions & 8 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"url": "https://www.patreon.com/foundryworkshop"
}
],
"version": "0.2.3",
"version": "0.2.4",
"minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "0.7.0",
"compatibleCoreVersion": "0.7.7",
"url": "https://github.com/Forien/foundryvtt-forien-unidentified-items",
"manifest": "https://raw.githubusercontent.com/Forien/foundryvtt-forien-unidentified-items/master/module.json",
"download": "https://github.com/Forien/foundryvtt-forien-unidentified-items/releases/download/v0.2.3/v0.2.3.zip",
"readme": "https://github.com/Forien/foundryvtt-forien-unidentified-items/blob/v0.2.3/README.md",
"changelog": "https://github.com/Forien/foundryvtt-forien-unidentified-items/blob/v0.2.3/changelog.md",
"bugs": "https://github.com/Forien/foundryvtt-forien-unidentified-items/issues",
"wiki": "https://github.com/Forien/foundryvtt-forien-unidentified-items/wiki",
"manifest": "https://raw.githubusercontent.com/League-of-Foundry-Developers/foundryvtt-forien-unidentified-items/master/module.json",
"download": "https://github.com/League-of-Foundry-Developers/foundryvtt-forien-unidentified-items/releases/download/v0.2.4/v0.2.4.zip",
"readme": "https://github.com/League-of-Foundry-Developers/foundryvtt-forien-unidentified-items/blob/v0.2.4/README.md",
"changelog": "https://github.com/League-of-Foundry-Developers/foundryvtt-forien-unidentified-items/blob/v0.2.4/changelog.md",
"bugs": "https://github.com/League-of-Foundry-Developers/foundryvtt-forien-unidentified-items/issues",
"wiki": "https://github.com/League-of-Foundry-Developers/foundryvtt-forien-unidentified-items/wiki",
"languages": [
{
"lang": "en",
Expand Down
11 changes: 5 additions & 6 deletions modules/ItemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ function getItemSheetClass(cls, sheet) {

const ItemClass = class extends ParentClass {

constructor(...args) {
super(...args);
this.name = sheet.split(".")[1];
}

/**
* Adds `[Mystified]` to the windows title if item is Mystified
* Adds `[Original]` to the windows title if item is Original
Expand Down Expand Up @@ -109,11 +114,5 @@ function getItemSheetClass(cls, sheet) {
}
};

let sheetName = sheet.split('.');
sheetName = sheetName[1];

// Because FireFox is stupid
Object.defineProperty(ItemClass, 'name', {value: sheetName});

return ItemClass;
}

0 comments on commit 25ffc2b

Please sign in to comment.