fix sort been stalled (#379)

This commit is contained in:
Misha Vyrtsev
2019-07-22 16:06:53 -05:00
committed by Umputun
parent 240796b2d6
commit 7103dbb589
+1 -1
View File
@@ -8,7 +8,7 @@ import { SORT_SET, SORT_SET_ACTION } from './types';
function setSortCookie(sort: Sorting) {
try {
setCookie(COOKIE_SORT_KEY, sort, { expires: 60 * 60 * 24 * 365 }); // save sorting for a year
setCookie(COOKIE_SORT_KEY, sort, { expires: 60 * 60 * 24 * 365, path: '/' }); // save sorting for a year
} catch {
// can't save; ignore it
}