Forráskód Böngészése

remove `window.modsLoading` from `:: PassageHeader`

Stephan Fuchs 2 hónapja
szülő
commit
53b7cc2da9
1 módosított fájl, 0 hozzáadás és 12 törlés
  1. 0 12
      sugarcube/src/PassageHeader.tw

+ 0 - 12
sugarcube/src/PassageHeader.tw

@@ -6,18 +6,6 @@
 <<set $callStackIndent = 0>>
 <<set $callStack = [[passage(),$callStackIndent]]>>
 
-<<if window.modsLoading>>
-    <<set window.modsLoaded ??= []>>
-    <<for _mod range window.modsLoading>>
-        <<if !window.modsLoaded.includes(_mod.id)>>
-            <<if !$modVars[_mod.id]>><<set $modVars[_mod.id] = {}>><</if>>
-            <<run _mod.onLoad(State.variables)>>
-            <<run window.modsLoaded.push(_mod.id)>>
-        <</if>>
-    <</for>>
-    <<set window.modsLoading = null>>
-<</if>>
-
 <!-- This might be overwritten in case we return from an event in PassageDone -->
 <<set _thisMainPassage = passage()>>
 <<set _tags = tags()>>