Update route.js

This commit is contained in:
Namhyeon Go 2018-06-25 16:50:51 +09:00 committed by GitHub
parent 678958992b
commit e8490a17d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,13 @@
function get_routes() {
return routes.split(',');
}
function inArray(needle, haystack) {
var len = haystack.length;
for(var i=0; i<len; i++) if(haystack[i] == needle) return true;
return false;
}
function addScript(url) {
var s = document.createElement('script');
s.src = url;