We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1237089 commit e08adc3Copy full SHA for e08adc3
Resources/Private/Main.js
@@ -1,5 +1,7 @@
1
import lscache from "lscache";
2
3
+lscache.setBucket("icons");
4
+
5
function replaceTag(element, markup) {
6
const attributes = [...element.attributes]
7
.filter((item) => item.name != "x-data")
@@ -16,7 +18,6 @@ function replaceTag(element, markup) {
16
18
window.addEventListener("alpine:init", () => {
17
19
window.Alpine.data("icon", (segment) => ({
20
init() {
- lscache.setBucket("icons");
21
const cache = lscache.get(segment);
22
if (cache && typeof cache === "string") {
23
replaceTag(this.$el, cache);
0 commit comments