Skip to content

Commit 2af3ab8

Browse files
Fix the company id showing something wrong.
1 parent 0df8628 commit 2af3ab8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extension/changelog.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"date": false,
66
"logs": {
77
"features": [],
8-
"fixes": [],
8+
"fixes": [{ "message": "Fix the company id showing something wrong.", "contributor": "DeKleineKobini" }],
99
"changes": [{ "message": "Change layout of preferences page on mobiles.", "contributor": "TheFoxMan" }],
1010
"removed": []
1111
}

extension/scripts/features/company-id/ttCompanyID.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
isOwnCompany ? "div.company-wrap > div.title-black" : "div.company-details-wrap > div.company-details > div.title-black"
3434
);
3535

36-
const id = await readCompanyDetails();
37-
if (!id) throw new Error("Company ID could not be found.");
36+
const details = await readCompanyDetails();
37+
if (!details) throw new Error("Company ID could not be found.");
3838

39-
container.appendChild(document.newElement({ type: "span", text: ` [${id}]`, id: "tt-company-id" }));
39+
container.appendChild(document.newElement({ type: "span", text: ` [${details.id}]`, id: "tt-company-id" }));
4040
}
4141

4242
function removeID() {

0 commit comments

Comments
 (0)