mirror of https://github.com/jitsi/jitsi-meet
parent
8c3fb54d3d
commit
9a49a01713
@ -1,14 +1,24 @@ |
|||||||
// FIXME React Native does not polyfill Symbol at versions 0.39.2 or earlier.
|
// FIXME React Native does not polyfill Symbol at versions 0.39.2 or earlier.
|
||||||
export default (global => { |
export default (global => { |
||||||
let s = global.Symbol; |
let clazz = global.Symbol; |
||||||
|
|
||||||
if (typeof s === 'undefined') { |
if (typeof clazz === 'undefined') { |
||||||
// XXX At the time of this writing we use Symbol only as a way to
|
// XXX At the time of this writing we use Symbol only as a way to
|
||||||
// prevent collisions in Redux action types. Consequently, the Symbol
|
// prevent collisions in Redux action types. Consequently, the Symbol
|
||||||
// implementation provided bellow is minimal and specific to our
|
// implementation provided bellow is minimal and specific to our
|
||||||
// purpose.
|
// purpose.
|
||||||
s = description => (description || '').split(''); |
const toString = function() { |
||||||
|
return this.join(''); // eslint-disable-line no-invalid-this
|
||||||
|
}; |
||||||
|
|
||||||
|
clazz = description => { |
||||||
|
const thiz = (description || '').split(''); |
||||||
|
|
||||||
|
thiz.toString = toString; |
||||||
|
|
||||||
|
return thiz; |
||||||
|
}; |
||||||
} |
} |
||||||
|
|
||||||
return s; |
return clazz; |
||||||
})(global || window || this); // eslint-disable-line no-invalid-this
|
})(global || window || this); // eslint-disable-line no-invalid-this
|
||||||
|
Loading…
Reference in new issue