File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ config-www-data-linux:
88
88
version : ' 1.0'
89
89
url : ' https://www.education-et-numerique.fr/spitfire.json'
90
90
self :
91
- url : ' //www.education-et-numerique.fr/ '
91
+ url : ' //www.education-et-numerique.fr'
92
92
93
93
config-dmp-darwin :
94
94
root : " ${HOME}/buildd/stage.webitup.org"
Original file line number Diff line number Diff line change 51
51
ia [ i ] = byteString . charCodeAt ( i ) ;
52
52
}
53
53
54
- // write the ArrayBuffer to a blob, and you're done
55
54
var bb ;
56
55
try {
57
56
bb = new BlobBuilder ( ) ;
58
57
} catch ( e ) {
59
58
try {
60
59
bb = new WebKitBlobBuilder ( ) ;
61
60
} catch ( e2 ) {
62
- bb = new MozBlobBuilder ( ) ;
61
+ try {
62
+ bb = new MozBlobBuilder ( ) ;
63
+ } catch ( e ) {
64
+
65
+ }
63
66
}
64
67
}
65
68
66
- bb . append ( ab ) ;
67
- return bb . getBlob ( mimeString ) ;
69
+ if ( bb ) {
70
+ bb . append ( ab ) ;
71
+ return bb . getBlob ( mimeString ) ;
72
+ } else {
73
+ return new Blob ( [ ab ] , { "type" : mimeString } ) ;
74
+ }
68
75
} ;
69
76
70
77
// The "caller" url
91
98
data = dataURItoBlob ( data ) ;
92
99
xhr . send ( data ) ;
93
100
} catch ( e ) {
94
- console . warn ( 'Something very bad happened deep-down inside!' , e ) ;
95
101
bouncer . apply ( xhr ) ;
102
+ console . warn ( 'Something very bad happened deep-down inside!' , e ) ;
103
+ throw e ;
96
104
}
97
105
} ;
98
106
You can’t perform that action at this time.
0 commit comments