We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0019842 commit cf39eaaCopy full SHA for cf39eaa
examples/template/example.html
@@ -42,7 +42,7 @@
42
var notFor = ['iClient Classic', '3D-WebGL'];
43
var productArr = ['Leaflet', 'OpenLayers', 'MapboxGL', 'MapLibreGL', 'component', 'iClient Classic', '3D-WebGL']
44
var path = window.location.pathname.split('/');
45
- var identification = productArr.find(name => name.toLowerCase().includes(path[2]) || name.toLowerCase().includes(path[3]));
+ var identification = productArr.filter(function(name) { return name.toLowerCase().includes(path[2]) || name.toLowerCase().includes(path[3]) })[0];
46
if (identification) {
47
var suffixHeader = document.getElementById('suffix-title');
48
suffixHeader.innerText = (notFor.indexOf(identification) < 0 ? 'for ' : '') + identification;
0 commit comments