mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
support post
This commit is contained in:
parent
aaf254cc3f
commit
a1872d3521
@ -75,7 +75,6 @@
|
|||||||
getFrameIdFromUrl : function() {
|
getFrameIdFromUrl : function() {
|
||||||
var href = window.location.href;
|
var href = window.location.href;
|
||||||
if (href.indexOf('frameId=') != -1) {
|
if (href.indexOf('frameId=') != -1) {
|
||||||
console.log(href.substring(href.indexOf('frameId=')+8));
|
|
||||||
return href.substring(href.indexOf('frameId=')+8);
|
return href.substring(href.indexOf('frameId=')+8);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -467,7 +466,8 @@
|
|||||||
xhr.open('POST', PISKEL_SERVICE_URL + "/store", true);
|
xhr.open('POST', PISKEL_SERVICE_URL + "/store", true);
|
||||||
xhr.onload = function(e) {
|
xhr.onload = function(e) {
|
||||||
if (this.status == 200) {
|
if (this.status == 200) {
|
||||||
alert("stored key : " + this.responseText);
|
var baseUrl = window.location.href.replace(window.location.search, "");
|
||||||
|
window.location.href = baseUrl + "?frameId=" + this.responseText;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user