Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private saveCurrentWallpaper = () => {
const suffix = this.getSuffix(storage.get("image.type"))
const filename = `mdnt-bg.${suffix}`
chrome.downloads.download({
url: this.props.url,
filename,
})
}
public render() {
export function destroyLocalActions () {
const stored = store.get(KEY);
store.set(KEY, NULL);
return stored === NULL ? false : stored;
}
export function saveLocalActions (actions) {
export const get = state => store.get(state.storeId);
function startSavedGame() {
const game = store.get("game");
if (game) {
const tiles = _.flatten(game.grid, true);
if (_.pluck(tiles, "id").length) id = _.max(ids) + 1;
game.fromSaved = true;
return fromJS(game);
}
}
componentDidMount() {
Layout.loadCarbonAds();
this.setState({
checked: store.get("mode") === "dark"
});
window.addEventListener("beforeunload", this.alertExistHandler);
}
() => {
if (!document.hidden) {
this.setState({
itemsInCart: store.get('itemsInCart') || []
});
this.authUser();
}
}
);
mounted() {
if (store2.has('apk')) {
const data = store2.get('apk');
this.checking = true;
$.get('/api/browse', { id: data.id, path: '/' })
.always(() => this.checking = false)
.then(() => {
this.apk = data;
this.status = 'successful'
})
}
},
}
export function persistentStore(key, defaults, methods) {
const backingStore = store(Object.assign(defaults, storage.get(key), methods));
observe(function () {
storage.set(key, backingStore);
});
return backingStore;
}