|
9 | 9 |
|
10 | 10 | * Mark van Eijk [[email protected]] Improvements to PHP converter script
|
11 | 11 |
|
12 |
| - Version 2.4.4 |
| 12 | + Version 2.4.5 |
13 | 13 |
|
14 | 14 | ---
|
15 | 15 |
|
|
194 | 194 | dumpcache: false,
|
195 | 195 |
|
196 | 196 | // Replacements for deprecated options
|
197 |
| - temporaryHoldingImage: null, |
198 |
| - forceReplacements: false, |
199 |
| - handleBackgroundImages: false, |
200 |
| - additionalRequestData: {}, |
201 |
| - postReplacementCallback:null, |
| 197 | + temporaryHoldingImage: null, |
| 198 | + forceReplacements: false, |
| 199 | + handleBackgroundImages: false, |
| 200 | + additionalRequestData: {}, |
| 201 | + postReplacementCallback:null, |
202 | 202 |
|
203 |
| - // New options |
204 |
| - remoteServerUri: 'http://svgmagic.bitlabs.nl/converter.php', |
205 |
| - remoteRequestType: 'POST', |
206 |
| - remoteDataType: 'jsonp', |
| 203 | + // New options |
| 204 | + remoteServerUri: 'http://bitlabs.nl/svgmagic/converter.php', |
| 205 | + remoteRequestType: 'POST', |
| 206 | + remoteDataType: 'jsonp', |
| 207 | + |
207 | 208 | // TODO: Implement this option
|
208 | 209 | replacementUriCreator: null
|
209 | 210 | },
|
|
220 | 221 | svgDataUri = /^data:image\/svg\+xml/,
|
221 | 222 | holdingImageTimeoutDuration = 500;
|
222 | 223 |
|
| 224 | + /** |
| 225 | + * Check if the remoteServerUri has to be replaced with https |
| 226 | + */ |
| 227 | + if(window.location.protocol == "https:" || options.additionalRequestData.secure) |
| 228 | + { |
| 229 | + options.remoteServerUri = options.remoteServerUri.replace("http://", "https://"); |
| 230 | + } |
| 231 | + |
223 | 232 | /**
|
224 | 233 | * The place where all magic starts
|
225 | 234 | */
|
|
0 commit comments