@@ -180,7 +180,7 @@ selectorLang.addEventListener('change', () => {
180
180
181
181
controlButton . addEventListener ( 'click' , ( ) => {
182
182
if ( controlButton . textContent === translateElements . timer . buttons . start ) {
183
- socket . send ( JSON . stringify ( { action : 'startExtensible ' , classElement } ) )
183
+ socket . send ( JSON . stringify ( { action : 'startTimer ' , classElement } ) )
184
184
} else {
185
185
socket . send ( JSON . stringify ( { action : 'pauseExtensible' , classElement } ) )
186
186
}
@@ -218,7 +218,7 @@ addContainer.addEventListener('click', (event) => {
218
218
const data = button . id . split ( '-' )
219
219
220
220
if ( button . id . startsWith ( 'addtime-' ) ) {
221
- socket . send ( JSON . stringify ( { action : 'editTimeExtensible ' , time : `+${ data [ 1 ] } ` , classElement } ) )
221
+ socket . send ( JSON . stringify ( { action : 'editTime ' , time : `+${ data [ 1 ] } ` , classElement } ) )
222
222
}
223
223
}
224
224
} )
@@ -234,7 +234,7 @@ subContainer.addEventListener('click', (event) => {
234
234
const data = button . id . split ( '-' )
235
235
236
236
if ( button . id . startsWith ( 'subtime-' ) ) {
237
- socket . send ( JSON . stringify ( { action : 'editTimeExtensible ' , time : `-${ data [ 1 ] } ` , classElement } ) )
237
+ socket . send ( JSON . stringify ( { action : 'editTime ' , time : `-${ data [ 1 ] } ` , classElement } ) )
238
238
}
239
239
}
240
240
} )
@@ -255,7 +255,7 @@ textMsg.addEventListener('focus', () => {
255
255
} )
256
256
257
257
textMsg . addEventListener ( 'blur' , ( ) => {
258
- socket . send ( JSON . stringify ( { action : 'editMsgExtensible ' , msg : textMsg . textContent , classElement } ) )
258
+ socket . send ( JSON . stringify ( { action : 'editMsg ' , msg : textMsg . textContent , classElement } ) )
259
259
if ( textMsg . textContent === '' ) {
260
260
textMsg . textContent = translateElements . timer . phMsgEnd
261
261
textMsg . style . color = '#555'
0 commit comments