Fix: remove unused variable 'event'
This commit is contained in:
parent
6aaa7ef878
commit
9c2acd5cc9
|
@ -22,7 +22,7 @@ var loadScript = (function () {
|
|||
|
||||
cache.set(path, script);
|
||||
};
|
||||
script.onerror = event => {
|
||||
script.onerror = () => {
|
||||
reject(new Error(`failed to load script: ${path}`));
|
||||
script.onload = null;
|
||||
script.onerror = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user