Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 1c05330

Browse files
committed
improve fix for #423
1 parent e251afb commit 1c05330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const version = '15.1.0'; // trick libraries to think we are react
55

66
const ELEMENTS = 'a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan'.split(' ');
77

8-
const REACT_ELEMENT_TYPE = (typeof Symbol!=='undefined' && Symbol.for && Symbol.for('react.element')) || 0xeac7;
8+
const REACT_ELEMENT_TYPE = (typeof Symbol!=='undefined' && typeof Symbol.for === 'function' && Symbol.for('react.element')) || 0xeac7;
99

10-
const COMPONENT_WRAPPER_KEY = (typeof Symbol!=='undefined' && Symbol.for) ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper';
10+
const COMPONENT_WRAPPER_KEY = (typeof Symbol!=='undefined' && typeof Symbol.for === 'function') ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper';
1111

1212
// don't autobind these methods since they already have guaranteed context.
1313
const AUTOBIND_BLACKLIST = {

0 commit comments

Comments
 (0)