Skip to content

Commit aa6eec6

Browse files
committed
remove lint warning
1 parent c12066d commit aa6eec6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/options/view.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ export const getListElements = () =>
77
getRootElem()
88
.map(elem => elem.children);
99

10+
const Sanitizer = {unwrapSafeHTML: s => s /* no thanks, we know what we are doing, lint */};
1011
export const setListElements = listContent =>
1112
getRootElem()
12-
.map(rootElem => returnTrue(rootElem.innerHTML = listContent));
13+
.map(rootElem => returnTrue(rootElem.innerHTML = Sanitizer.unwrapSafeHTML(listContent)));
1314

1415
export const onListItemClick = handler =>
1516
getRootElem()

0 commit comments

Comments
 (0)