Commit 483d34ad authored by Ivanq's avatar Ivanq

Common: Add user_common.js

parent 141adfb0
let zeroFrame = new ZeroFrame();
let zeroPage = new ZeroPage(zeroFrame);
let address = location.search.replace(/[?&]wrapper_nonce=.*/, "").replace("?", "");
if(!address) {
location.href = "..";
}
let additional = "";
if(address.indexOf("/") > -1) {
additional = address.substr(address.indexOf("/") + 1);
address = address.substr(0, address.indexOf("/"));
} else if(address.indexOf("@") > -1) {
additional = address.substr(address.indexOf("@"));
address = address.substr(0, address.indexOf("@"));
}
let repo = new Repository(address, zeroPage);
\ No newline at end of file
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