✌️
This commit is contained in:
parent
6e8caf7966
commit
5ca4aefff4
3 changed files with 5 additions and 6 deletions
|
|
@ -98,6 +98,7 @@ self.addEventListener('message', ev => {
|
|||
}
|
||||
|
||||
if (typeof ev.data === 'object') {
|
||||
// E.g. '[object Array]' → 'array'
|
||||
const otype = Object.prototype.toString.call(ev.data).slice(8, -1).toLowerCase();
|
||||
|
||||
if (otype === 'object') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue