(message)
| 12 | // show the error on main and |
| 13 | // stops the module from keep executing |
| 14 | const notifyAndThrow = (message) => { |
| 15 | notify(message); |
| 16 | throw new Error(message); |
| 17 | }; |
| 18 | |
| 19 | const onceOnMain = ({ attributes: { worker } }) => !worker; |
| 20 |