js: Bugfix handling the "no window.location.hash" case.

This commit is contained in:
Brett Smith 2020-11-25 11:43:57 -05:00
parent e397501bfa
commit 8ca60f8b07

View file

@ -111,7 +111,7 @@ $(document).ready(function() {
supportTypeSelector("#annual").click();
}
var want_id = window.location.hash.substr(1);
var want_id = window.location.hash.substr(1) || "do not match any id";
$('a.read-more').each(function(index, readmore) {
var $readmore = $(readmore)
var $content = $(readmore.hash);