Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = window.location.search.match(/url=([^&]+)/);
- if (url && url.length > 1) {
- url = decodeURIComponent(url[1]);
- } else {
- url = window.location.pathname + "api.json";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement