Fix docs custom.js for switcher
@@ -11,7 +11,8 @@ window.addEventListener('DOMContentLoaded', function () {
$(document).ready(function () {
const randid = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
$.getJSON('/switcher.json?v=' + randid , function (data) {
- if (BOKEH_CURRENT_VERSION != data[0].version) {
+ // old versions have a unified latest/x.y.z, things are split starting with 3.0
+ if (BOKEH_CURRENT_VERSION != data[1].version) {
let msg
if (data.findIndex((elt) => elt.version == BOKEH_CURRENT_VERSION) < 0 ) {
msg = "DEVELOPMENT / PRE-RELEASE"
