File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const defaultCachedScript = {
5151 scriptCreated : false ,
5252} ;
5353
54- const getCahcedScriptUpdaters = ( url : string ) : CachedScriptUpdater [ ] =>
54+ const getCachedScriptUpdaters = ( url : string ) : CachedScriptUpdater [ ] =>
5555 ( window . __loadedScriptsUpdaters [ url ] =
5656 window . __loadedScriptsUpdaters [ url ] || [ ] ) ;
5757
@@ -71,7 +71,7 @@ export function updateCachedScript(
7171 ...updatedScript ,
7272 } ) ;
7373
74- getCahcedScriptUpdaters ( url ) . forEach ( ( updater ) => updater ( newScript ) ) ;
74+ getCachedScriptUpdaters ( url ) . forEach ( ( updater ) => updater ( newScript ) ) ;
7575
7676 return newScript ;
7777}
@@ -81,7 +81,7 @@ export function addScriptUpdater(
8181 updater : CachedScriptUpdater
8282) : void {
8383 window . __loadedScriptsUpdaters [ url ] = [
84- ...getCahcedScriptUpdaters ( url ) ,
84+ ...getCachedScriptUpdaters ( url ) ,
8585 updater ,
8686 ] ;
8787}
@@ -90,7 +90,7 @@ export function removeScriptUpdater(
9090 url : string ,
9191 updater : CachedScriptUpdater
9292) : void {
93- window . __loadedScriptsUpdaters [ url ] = getCahcedScriptUpdaters ( url ) . filter (
93+ window . __loadedScriptsUpdaters [ url ] = getCachedScriptUpdaters ( url ) . filter (
9494 ( currentUpdater ) => currentUpdater !== updater
9595 ) ;
9696}
You can’t perform that action at this time.
0 commit comments