]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/base.js
Set HTML title for all pages
[nominatim-ui.git] / src / assets / js / base.js
index a56f40d5a8e60c1944feabb119868f5446edcd10..c9635fbf712f7b540900947f4e37ef738ae2aa8f 100644 (file)
@@ -83,6 +83,14 @@ function render_template(el, template_name, page_context) {
   el.html(html);
 }
 
+function update_html_title(title) {
+  var prefix = '';
+  if (title && title.length > 1) {
+    prefix = title + ' | ';
+  }
+  $('head title').text(prefix + 'OpenStreetMap Nominatim');
+}
+
 function show_error(html) {
   $('#error-overlay').html(html).show();
 }