javascript: add a window.fetch polyfill

This allows the autosave to work on browsers that don't support fetch:

- IE 11
- Edge < 14
- Safari < 11
This commit is contained in:
Pierre de La Morinerie 2019-11-25 14:17:04 +01:00 committed by GitHub Action
parent 44f28241c4
commit 2309017727
3 changed files with 8 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import Turbolinks from 'turbolinks';
import Rails from '@rails/ujs';
import * as ActiveStorage from '@rails/activestorage';
import '@rails/actiontext';
import 'whatwg-fetch'; // window.fetch polyfill
import Chartkick from 'chartkick';
import Highcharts from 'highcharts';