Skip to content

Commit 8b2f412

Browse files
committed
Add Linux build options and new icon
1 parent 0073311 commit 8b2f412

7 files changed

+13
-5
lines changed

icons/ICON-LICENSE

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Creative Commons BY 3.0
2+
License Url: http://creativecommons.org/licenses/by/3.0/
3+
Author: Madebyoliver
4+
Author Url: http://www.flaticon.com/authors/madebyoliver
5+

icons/linux/icon-256x256.png

4.79 KB
Loading

icons/linux/icon-32x32.png

864 Bytes
Loading

icons/linux/icon-64x64.png

1.74 KB
Loading

win-icon.ico icons/win-icon.ico

File renamed without changes.

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
},
1010
"build": {
1111
"appId": "com.nullism.subvertise",
12-
"icon": "win-icon.ico",
12+
"icon": "icons/win-icon.ico",
13+
"linux": {
14+
"icon": "icons/linux/"
15+
},
1316
"nsis": {
1417
"license": "LICENSE"
1518
}

src/js/subvertise.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function stop() {
7979
function start() {
8080
isActive = true
8181
clearTimeout(loopTimer)
82-
loopTimer = setInterval(function() { mainLoop() }, 100)
82+
loopTimer = setInterval(function () { mainLoop() }, 100)
8383
controlButtonEl.innerHTML = '<i class="material-icons">pause</i>'
8484
}
8585

@@ -95,7 +95,7 @@ function populatUi() {
9595
urlTextEl.value = getUrls().join("\n")
9696
maxWaitTextEl.value = getMaxWaitTime()
9797
minWaitTextEl.value = getMinWaitTime()
98-
proxyTextEl.value = storeGet("proxyString","")
98+
proxyTextEl.value = storeGet("proxyString", "")
9999
}
100100

101101
// Save #max-wait-time-text.value to store
@@ -141,7 +141,7 @@ function saveProxyText() {
141141
function saveUrlText() {
142142
let urls = urlTextEl.value.split("\n")
143143
let newUrls = []
144-
for (let i=0; i<urls.length; i++) {
144+
for (let i = 0; i < urls.length; i++) {
145145
if (urls[i].length) newUrls.push(urls[i].trim())
146146
}
147147
storeSet("urls", newUrls)
@@ -175,6 +175,6 @@ function updateUI() {
175175
}
176176
}
177177

178-
window.onload = function() {
178+
window.onload = function () {
179179
populatUi()
180180
}

0 commit comments

Comments
 (0)