diff options
-rwxr-xr-x | deploy.sh | 2 | ||||
-rw-r--r-- | web/app/DeviceImages.js | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -2,5 +2,5 @@ URL=gemini://avalos.me/gemlog WEB_DIR=./web SSH_CMD="ssh" -RSYNC_TO=etbsa:/opt/traccar/web/ +RSYNC_TO=etbsa.net:/opt/traccar/web/ rsync --progress -e "$SSH_CMD" -rvO --delete $WEB_DIR/ $RSYNC_TO diff --git a/web/app/DeviceImages.js b/web/app/DeviceImages.js index af45ce9..9b837e8 100644 --- a/web/app/DeviceImages.js +++ b/web/app/DeviceImages.js @@ -22,7 +22,8 @@ Ext.define('Traccar.DeviceImages', { getImageSvg: function (color, zoom, angle, category) { var i, info, svg, width, height, rotateTransform, scaleTransform, fill; - info = Ext.getStore('DeviceImages').findRecord('key', category || 'default', 0, false, false, true); + info = Ext.getStore('DeviceImages').findRecord('key', category || 'default', 0, false, false, true) || + Ext.getStore('DeviceImages').findRecord('key', 'default', false, false, true); svg = Ext.clone(info.get('svg')); if (!svg) { svg = this.cloneDocument(info.get('svg')); |