added hack to fix scopes & CORS for bookmarklet

This commit is contained in:
smilerz
2021-03-29 06:39:44 -05:00
parent a341fd8ebe
commit 5e27cd606e
4 changed files with 14 additions and 7 deletions

View File

@@ -37,6 +37,7 @@
if (xhr.readyState == 4 && xhr.status == 201) {
// parse JSON data
console.log(JSON.parse(xhr.response));
window.open(redirect.concat('?id=', JSON.parse(xhr.response).id) )
} else {
console.error('Error!');
}