Fix: remove unused variable 'event'

This commit is contained in:
eight 2017-09-01 14:36:13 +08:00
parent 6aaa7ef878
commit 9c2acd5cc9

View File

@ -22,7 +22,7 @@ var loadScript = (function () {
cache.set(path, script); cache.set(path, script);
}; };
script.onerror = event => { script.onerror = () => {
reject(new Error(`failed to load script: ${path}`)); reject(new Error(`failed to load script: ${path}`));
script.onload = null; script.onload = null;
script.onerror = null; script.onerror = null;