Remove a hash symbol from split method

This commit is contained in:
Arsen Melikyan
2015-12-01 14:14:12 +04:00
parent 3b140bc813
commit b5ce9ca6fc

View File

@ -233,7 +233,7 @@ window.common = (function(global) {
public: true, public: true,
files: {} files: {}
}; };
var queryIssue = window.location.href.toString().split('#?')[0]; var queryIssue = window.location.href.toString().split('?')[0];
var filename = queryIssue var filename = queryIssue
.substr(queryIssue.lastIndexOf('challenges/') + 11) .substr(queryIssue.lastIndexOf('challenges/') + 11)
.replace('/', '') + '.js'; .replace('/', '') + '.js';