Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
autorun(reaction => {
this.activeTitle = toJS(store.activeTitle);
this.shareUrl = document.location.href;
this.shareMsg = this.activeTitle + " " + this.shareUrl;
if (varGet(store.activeItem, "metadata.fields.subtitle", false)) {
this.subtitle = store.activeItem.metadata.fields.subtitle;
} else {
this.subtitle = false;
}
// look for image on the post and make it the pin share
if (varGet(store.activeItem, "metadata.fields.images.0.src", false)) {
this.activeImage = store.activeItem.metadata.fields.images[0].src;
}
this.__disposer.push(reaction);
});
}
autorun(reaction => {
this.editMode = toJS(store.editMode);
this.__disposer.push(reaction);
});
}
autorun(reaction => {
this.themeData = toJS(store.themeData);
if (this.themeData && this.themeData.element !== this.themeName) {
this.themeName = this.themeData.element;
}
this.__disposer.push(reaction);
});
autorun(reaction => {
autorun(reaction => {
this.activeRouterManifestIndex = toJS(store.activeRouterManifestIndex);
this.__disposer.push(reaction);
});
autorun(reaction => {
autorun(reaction => {
this.manifest = toJS(store.manifest);
this.icon = "hax:site-settings";
this.__disposer.push(reaction);
});
autorun(reaction => {
autorun(reaction => {
this.manifestItems = [...toJS(store.manifest.items)];
this.__disposer.push(reaction);
});
}
autorun(reaction => {
this.editMode = toJS(store.editMode);
this.__disposer.push(reaction);
});
}
this.__disposer2 = autorun(() => {
this.activeManifestIndex = toJS(store.activeManifestIndex);
});
this.__disposer3 = autorun(() => {
autorun(reaction => {
this.jwt = toJS(store.jwt);
this.__disposer.push(reaction);
});
autorun(reaction => {
autorun(reaction => {
this.activeManifestIndexCounter = toJS(store.activeManifestIndexCounter);
this.__disposer.push(reaction);
});
autorun(reaction => {