Commit 7fa5a823 by Иван Кубота

Edge support

parent dbe6dd03
...@@ -18,7 +18,7 @@ store.sub(['navigation.current', 'loaded.cards'], async function(page, loaded) { ...@@ -18,7 +18,7 @@ store.sub(['navigation.current', 'loaded.cards'], async function(page, loaded) {
const result = await AsyncAuthAjax.get( API.ENDPOINTS.GET_USER_NEW_CARDS() ); const result = await AsyncAuthAjax.get( API.ENDPOINTS.GET_USER_NEW_CARDS() );
result.forEach(function(card) { result.forEach(function(card) {
cards.set(card.id+'', {...card, seen: false}) cards.set(card.id+'', Object.assign({},card, {seen: false}));
}); });
store.set('loaded.cards', true); store.set('loaded.cards', true);
......
const transformCfg = function(cfg) { const transformCfg = function(cfg) {
return { return Object.assign({}, cfg, {
...cfg, headers: Object.assign(
headers: { {'Content-Type': 'application/json'},
'Content-Type': 'application/json', cfg && cfg.headers || {}
...(cfg && cfg.headers || {}) )
} });
}
}; };
const xhrProceed = function(method, xhr, cfg, cb) { const xhrProceed = function(method, xhr, cfg, cb) {
xhr.open(method, cfg.url, true); xhr.open(method, cfg.url, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment