mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
window.fetch
This commit is contained in:
@ -25,7 +25,7 @@ export class Http {
|
|||||||
* @return es6 promise from the fetch.
|
* @return es6 promise from the fetch.
|
||||||
*/
|
*/
|
||||||
static fetch(url, options) {
|
static fetch(url, options) {
|
||||||
return fetch(url, options).then((response) => {
|
return window.fetch(url, options).then((response) => {
|
||||||
// status "0" to handle local files fetching (e.g. Cordova/Phonegap etc.)
|
// status "0" to handle local files fetching (e.g. Cordova/Phonegap etc.)
|
||||||
if (response.status === 200 || response.status === 0) {
|
if (response.status === 200 || response.status === 0) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user