Verified Commit 9fd897bf authored by Camil Staps's avatar Camil Staps 🚀

Only set library browser title when a module is loaded

parent cc66d7b3
......@@ -103,8 +103,10 @@ window.onload = function() {
}
var modparts = state.mod.split('/');
var lib = modparts.shift();
document.title = modparts.join('.') + ' (' + lib + ') - Cloogle library browser';
if (modparts.length > 1) {
var lib = modparts.shift();
document.title = modparts.join('.') + ' (' + lib + ') - Cloogle library browser';
}
bindLinenos();
restoreShareUI();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment