kopia lustrzana https://github.com/backface/turtlestitch
Cloud: Support cookies
rodzic
86779af8f0
commit
957812e6f0
Plik binarny nie jest wyświetlany.
4
cloud.js
4
cloud.js
|
@ -29,7 +29,7 @@
|
|||
|
||||
/*global modules, IDE_Morph, SnapSerializer, hex_sha512, alert, nop*/
|
||||
|
||||
modules.cloud = '2013-February-27';
|
||||
modules.cloud = '2013-March-21';
|
||||
|
||||
// Global stuff
|
||||
|
||||
|
@ -82,6 +82,7 @@ Cloud.prototype.signup = function (
|
|||
+ email,
|
||||
true
|
||||
);
|
||||
request.withCredentials = true;
|
||||
request.onreadystatechange = function () {
|
||||
if (request.readyState === 4) {
|
||||
if (request.responseText) {
|
||||
|
@ -126,6 +127,7 @@ Cloud.prototype.connect = function (
|
|||
(this.hasProtocol() ? '' : 'http://') + this.url,
|
||||
true
|
||||
);
|
||||
request.withCredentials = true;
|
||||
request.onreadystatechange = function () {
|
||||
if (request.readyState === 4) {
|
||||
if (request.responseText) {
|
||||
|
|
|
@ -1545,4 +1545,8 @@ ______
|
|||
* GUI: deactivated motd and cloudmsg mechanism for now (has some issues)
|
||||
* Updated Portuguese translation, thanks, Manuel!
|
||||
* Updated all translations for %keyHat and %msgHat specs
|
||||
* YPR: fixed turnLeft / turnRight swap bug
|
||||
* YPR: fixed turnLeft / turnRight swap bug
|
||||
|
||||
130321
|
||||
------
|
||||
* Cloud: allow every XMLHttpRequest to transport cookies (withCredentials = true)
|
Ładowanie…
Reference in New Issue