This repository was archived by the owner on Jan 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function scriptConfig(): string
86
86
{
87
87
return \Livewire \Mechanisms \FrontendAssets \FrontendAssets::scriptConfig ();
88
88
}
89
-
89
+
90
90
/**
91
91
* Antlers implementation of @assets - https://livewire.laravel.com/docs/javascript#loading-assets
92
92
*
@@ -95,17 +95,17 @@ public function scriptConfig(): string
95
95
public function assets (): void
96
96
{
97
97
$ html = (string ) $ this ->parse ();
98
-
98
+
99
99
$ key = md5 ($ html );
100
-
100
+
101
101
if (in_array ($ key , \Livewire \Features \SupportScriptsAndAssets \SupportScriptsAndAssets::$ alreadyRunAssetKeys )) {
102
102
// Skip it...
103
103
} else {
104
104
\Livewire \Features \SupportScriptsAndAssets \SupportScriptsAndAssets::$ alreadyRunAssetKeys [] = $ key ;
105
105
\Livewire \store ($ this ->context ['__livewire ' ])->push ('assets ' , $ html , $ key );
106
106
}
107
107
}
108
-
108
+
109
109
/**
110
110
* Antlers implementation of @script - https://livewire.laravel.com/docs/javascript#executing-scripts
111
111
*
@@ -114,9 +114,9 @@ public function assets(): void
114
114
public function script (): void
115
115
{
116
116
$ html = trim ((string ) $ this ->parse ());
117
-
117
+
118
118
$ key = md5 ($ html );
119
-
119
+
120
120
\Livewire \store ($ this ->context ['__livewire ' ])->push ('scripts ' , $ html , $ key );
121
121
}
122
122
}
You can’t perform that action at this time.
0 commit comments