Browser: Add Object.assign polyfill to support older browsers (#3884)

master
Rushan 8 years ago committed by Harshavardhana
parent 2410eb281e
commit e77885d671
  1. 2
      browser/app/index.js
  2. 4
      browser/app/js/actions.js
  3. 1
      browser/package.json

@ -44,6 +44,8 @@ import Web from './js/web'
window.Web = Web window.Web = Web
import storage from 'local-storage-fallback' import storage from 'local-storage-fallback'
import objectAssign from 'es6-object-assign'
objectAssign.polyfill()
const store = applyMiddleware(thunkMiddleware)(createStore)(reducer) const store = applyMiddleware(thunkMiddleware)(createStore)(reducer)
const Browse = connect(state => state)(_Browse) const Browse = connect(state => state)(_Browse)

@ -14,13 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
import url from 'url'
import Moment from 'moment' import Moment from 'moment'
import browserHistory from 'react-router/lib/browserHistory' import browserHistory from 'react-router/lib/browserHistory'
import web from './web'
import * as utils from './utils'
import storage from 'local-storage-fallback' import storage from 'local-storage-fallback'
import { minioBrowserPrefix } from './constants' import { minioBrowserPrefix } from './constants'
export const SET_WEB = 'SET_WEB' export const SET_WEB = 'SET_WEB'

@ -67,6 +67,7 @@
"dependencies": { "dependencies": {
"bootstrap": "^3.3.6", "bootstrap": "^3.3.6",
"classnames": "^2.2.3", "classnames": "^2.2.3",
"es6-object-assign": "^1.0.3",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"humanize": "0.0.9", "humanize": "0.0.9",
"json-loader": "^0.5.4", "json-loader": "^0.5.4",

Loading…
Cancel
Save