reddit-wallpapers
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -16,3 +16,3 @@ import { | ||
loops: [], | ||
index: 0, | ||
index: parseInt(localStorage.redWallIndex) || 0, | ||
previousChoice: undefined | ||
@@ -58,3 +58,2 @@ } | ||
function setImage(defaultImage=false) { | ||
if (!defaultImage) self.index += 1 | ||
if (self.index >= self.data.length - 1 && !defaultImage) { | ||
@@ -96,2 +95,4 @@ self.restart() // clearing loops and reinit | ||
}) | ||
localStorage.redWallIndex = self.index + 1 | ||
self.index += 1 | ||
} | ||
@@ -98,0 +99,0 @@ } |
{ | ||
"name": "reddit-wallpapers", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "to help fetching wallpapers with reddit api and loop setting them", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
324911
195