This commit is contained in:
Jokob-sk
2023-06-25 08:53:31 +10:00
parent abe9ff5b2c
commit c5987778b6
2 changed files with 2 additions and 2 deletions

View File

@@ -1350,7 +1350,7 @@ function getDeviceData (readAllData=false) {
// Name // Name
if (deviceData['dev_Owner'] == null || deviceData['dev_Owner'] == '' || if (deviceData['dev_Owner'] == null || deviceData['dev_Owner'] == '' ||
(deviceData['dev_Name']).indexOf (deviceData['dev_Owner']) != -1 ) { (deviceData['dev_Name'].toString()).indexOf (deviceData['dev_Owner']) != -1 ) {
$('#pageTitle').html (deviceData['dev_Name']); $('#pageTitle').html (deviceData['dev_Name']);
} else { } else {
$('#pageTitle').html (deviceData['dev_Name'] + ' ('+ deviceData['dev_Owner'] +')'); $('#pageTitle').html (deviceData['dev_Name'] + ' ('+ deviceData['dev_Owner'] +')');

View File

@@ -85,7 +85,7 @@ def cleanResult(str):
if str.endswith('.'): if str.endswith('.'):
str = str[:-1] str = str[:-1]
return str return str(str)
# Disclaimer - I'm interfacing with a script I didn't write (pholus3.py) so it's possible I'm missing types of answers # Disclaimer - I'm interfacing with a script I didn't write (pholus3.py) so it's possible I'm missing types of answers