Skip to content

Commit d394409

Browse files
committed
🐛 fix: Remove legacy assignments to window and module.exports
1 parent f9d933d commit d394409

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/shared/js/utils/config.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,6 @@ export const svgActionsHoverTitles = {
8787
copyHypeLink: "Copy url as hyperlink",
8888
};
8989

90-
// Backward compatibility - attach to global window object (only in DOM context)
91-
if (typeof window !== "undefined") {
92-
window.state = state;
93-
window.descendingSortKeys = descendingSortKeys;
94-
window.svgActionsHoverTitles = svgActionsHoverTitles;
95-
}
96-
97-
// Node.js module compatibility for testing
98-
if (typeof module !== "undefined" && module.exports != null) {
99-
module.exports = {
100-
state,
101-
descendingSortKeys,
102-
svgActionsHoverTitles,
103-
};
104-
}
105-
10690
/**
10791
* Shared configuration for the Tags' select2 inputs
10892
*/

0 commit comments

Comments
 (0)