Skip to content

Commit 05653e4

Browse files
committed
fix cENS
1 parent 1e94f74 commit 05653e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/feedback/src/widget/Icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface IconReturn {
1515
* Feedback Icon
1616
*/
1717
export function Icon({ color }: Props): IconReturn {
18-
const cENS = document.createElementNS;
18+
const cENS = document.createElementNS.bind(document);
1919
const svg = setAttributesNS(cENS(XMLNS, 'svg'), {
2020
width: `${SIZE}`,
2121
height: `${SIZE}`,

packages/feedback/src/widget/SuccessIcon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface IconReturn {
1616
* Success Icon (checkmark)
1717
*/
1818
export function SuccessIcon({ color }: Props): IconReturn {
19-
const cENS = document.createElementNS;
19+
const cENS = document.createElementNS.bind(document);
2020
const svg = setAttributesNS(cENS(XMLNS, 'svg'), {
2121
width: `${WIDTH}`,
2222
height: `${HEIGHT}`,

0 commit comments

Comments
 (0)