mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
added hack to fix scopes & CORS for bookmarklet
This commit is contained in:
@@ -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!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user