diff --git a/gramps/plugins/webreport/person.py b/gramps/plugins/webreport/person.py index eb63b74fa..ed66b37bf 100644 --- a/gramps/plugins/webreport/person.py +++ b/gramps/plugins/webreport/person.py @@ -724,7 +724,7 @@ class PersonPages(BasePage): head += Html("script", type="text/javascript", src=src_js, inline=True) url = "https://openlayers.org/en/latest/css/ol.css" - head += Html("link", href=url, type="text/javascript", + head += Html("link", href=url, type="text/css", rel="stylesheet") src_js = self.secure_mode src_js += ("maxcdn.bootstrapcdn.com/bootstrap/3.3.7/" diff --git a/gramps/plugins/webreport/place.py b/gramps/plugins/webreport/place.py index 95a4ff7de..6e5c64d03 100644 --- a/gramps/plugins/webreport/place.py +++ b/gramps/plugins/webreport/place.py @@ -388,7 +388,7 @@ class PlacePages(BasePage): head += Html("script", type="text/javascript", src=src_js, inline=True) url = "https://openlayers.org/en/latest/css/ol.css" - head += Html("link", href=url, type="text/javascript", + head += Html("link", href=url, type="text/css", rel="stylesheet") src_js = self.secure_mode src_js += ("maxcdn.bootstrapcdn.com/bootstrap/3.3.7/"