Moved oauth callback to /api/oauth and embed to /api/embed, with utilizing the search in url

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-07 12:48:41 +02:00
parent 5333b4bc13
commit 2e8da96706
6 changed files with 85 additions and 48 deletions

View File

@@ -498,7 +498,7 @@ importPlaylist: function(pId,pageToken){
youtube_window.close();
window.callback = "";
};
youtube_window = window.open("/o_callback#youtube=true&nonce=" + nonce, "", "width=600, height=600");
youtube_window = window.open("/api/oauth#youtube=true&nonce=" + nonce, "", "width=600, height=600");
} else {
Helper.log([
"import list error: ",
@@ -555,7 +555,7 @@ importPlaylist: function(pId,pageToken){
youtube_window.close();
window.callback = "";
};
youtube_window = window.open("/o_callback#youtube=true&nonce=" + nonce, "", "width=600, height=600");
youtube_window = window.open("/api/oauth#youtube=true&nonce=" + nonce, "", "width=600, height=600");
} else {
Helper.log([
"import list error: ",