Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. var url = window.location.search.match(/url=([^&]+)/);
  2. if (url && url.length > 1) {
  3. url = decodeURIComponent(url[1]);
  4. } else {
  5. url = window.location.pathname + "api.json";
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement