summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/public/js/taginfo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index 0ca72d9..1d3994f 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -744,7 +744,7 @@ function comparison_list_change(key, value) {
/* ============================ */
function activate_josm_button() {
- if (jQuery('#josm_button')) {
+ if (jQuery('#josm_button').length != 0) {
if (window.location.protocol == "https:") {
var url = jQuery('#josm_button')[0].href.replace('http://localhost:8111/', 'https://localhost:8112/');
jQuery('#josm_button')[0].href = url;