Skip to content

Commit

Permalink
Marked the browser.js module as client code in attempt to fix the #228
Browse files Browse the repository at this point in the history
…bug in Next.js.
  • Loading branch information
kkomelin committed Dec 12, 2023
1 parent 4a887db commit 9cd0116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browser.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = window.DOMPurify || (window.DOMPurify = require('dompurify').default || require('dompurify'));
'use client';
module.exports = window.DOMPurify || (window.DOMPurify = require('dompurify').default || require('dompurify'));

0 comments on commit 9cd0116

Please sign in to comment.