Skip to content

Commit

Permalink
fix: bind setTimeout to make AsyncComponent work
Browse files Browse the repository at this point in the history
  • Loading branch information
SunriseFox authored and Jack-Works committed Oct 10, 2019
1 parent 644d819 commit 7b77c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/firefoxFix.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* If any API is complaining "this does not implements Window", add it here.
*/
const brokenAPI = ['requestAnimationFrame']
const brokenAPI = ['requestAnimationFrame', 'setTimeout', 'clearTimeout']

const webAPIs = Object.getOwnPropertyDescriptors(window)
Reflect.deleteProperty(webAPIs, 'window')
Expand Down

0 comments on commit 7b77c61

Please sign in to comment.