Commit bcfb44b0 authored by Xavier Watkins's avatar Xavier Watkins
Browse files

Cast to string before indexOf

parent 58d42f22
......@@ -43,7 +43,7 @@ app.run(function($rootScope, dbXrefService, $window) {
};
$rootScope.followLinkToEntry = function(id, database) {
var pos = id.indexOf(':');
var pos = String(id).indexOf(':');
if (!database) {
if (pos > 0) {
......
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