Skip to content

Commit e1e42ef

Browse files
committed
v1.0.8
Bugfixes
1 parent a311566 commit e1e42ef

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

core/template/cdowntime/control/control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ selectorLang.addEventListener('change', () => {
147147
})
148148

149149
timeData.addEventListener('change', () => {
150+
test.textContent = `${timeData.value} [ ${new Date(timeData.value).getTime()} ]`
150151
socket.send(JSON.stringify({ action: 'changeTimeCdownTime', time: new Date(timeData.value).getTime(), classElement }))
151152
})
152153

153154
timezoneSelector.addEventListener('change', () => {
154155
socket.send(JSON.stringify({ action: 'changeTimezoneTime', timezone: timezoneSelector.value, classElement }))
155-
window.location.reload()
156156
})
157157

158158
// Add an event listener to the main container

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obs-timer-controller",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Handling browser sources for OBS related to timers and countdowns.",
55
"main": "server.js",
66
"repository": {
@@ -24,9 +24,9 @@
2424
"scripts": {
2525
"test": "echo \"Error: no test specified\" && exit 1",
2626
"node": "node . test",
27-
"pkg-win": "electron-packager . OBS-Timer-Controller --platform=win32 --arch=x64 --app-version=1.0.7 --out=dist --overwrite --icon=icon.ico --author=\"XtoManuel\" --description=\"Handling browser sources for OBS related to timers and countdowns.\"",
28-
"pkg-linux": "electron-packager . OBS-Timer-Controller --platform=linux --arch=x64 --app-version=1.0.7 --out=dist --overwrite --icon=icon.ico --author=\"XtoManuel\" --description=\"Handling browser sources for OBS related to timers and countdowns.\"",
29-
"pkg-mac": "electron-packager . OBS-Timer-Controller --platform=darwin --arch=x64 --app-version=1.0.7 --out=dist --overwrite --icon=icon.icns --author=\"XtoManuel\" --description=\"Handling browser sources for OBS related to timers and countdowns.\"",
27+
"pkg-win": "electron-packager . OBS-Timer-Controller --platform=win32 --arch=x64 --app-version=1.0.8 --out=dist --overwrite --icon=icon.ico --author=\"XtoManuel\" --description=\"Handling browser sources for OBS related to timers and countdowns.\"",
28+
"pkg-linux": "electron-packager . OBS-Timer-Controller --platform=linux --arch=x64 --app-version=1.0.8 --out=dist --overwrite --icon=icon.ico --author=\"XtoManuel\" --description=\"Handling browser sources for OBS related to timers and countdowns.\"",
29+
"pkg-mac": "electron-packager . OBS-Timer-Controller --platform=darwin --arch=x64 --app-version=1.0.8 --out=dist --overwrite --icon=icon.icns --author=\"XtoManuel\" --description=\"Handling browser sources for OBS related to timers and countdowns.\"",
3030
"pkg-all": "npm run pkg-win && npm run pkg-linux"
3131
},
3232
"author": "XtoManuel",

server.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ const actions = {
9898
changeTimeCdown: (ws, data) => handleChangeTimeCdown(data),
9999
changeTimeCdownTime: (ws, data) => handleChangeTimeCdownTime(data),
100100
changeTimeExtensible: (ws, data) => handleChangeTimeExtensible(data),
101-
changeTimezoneTime: (ws, data) => handleChangeTimezoneTime(data),
101+
changeTimezoneTime: (ws, data) => {
102+
handleChangeTimezoneTime(data)
103+
sendToAllClients({ action: 'reload' })
104+
},
102105
editMsg: (ws, data) => editMsg(data),
103106
checkboxStopAdd: (ws, data) => changeCheckboxStopAdd(data),
104107
checkboxPauseAdd: (ws, data) => changeCheckboxPauseAdd(data),
@@ -114,7 +117,10 @@ const actions = {
114117
getVariables: (ws, data) => sendVariableData(ws, GlobalVariables, Config, data.classElement),
115118
createData: (ws, data) => createData(data),
116119
removeData: (ws, data) => removeData(data),
117-
stopCode: () => stopCode()
120+
stopCode: () => {
121+
console.log('The code has stopped successfully')
122+
process.exit()
123+
}
118124
}
119125

120126
function sendToAllClients (data) {
@@ -292,11 +298,6 @@ function removeData (data) {
292298
saveVariablesToYAML(GlobalVariables)
293299
}
294300

295-
function stopCode () {
296-
console.log('The code has stopped successfully')
297-
process.exit()
298-
}
299-
300301
// WebSocket connections handling
301302
wss.on('connection', (ws) => {
302303
ws.send(JSON.stringify({ fonts: fontOptions }))

0 commit comments

Comments
 (0)