mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Make session persists accross multiple tabs. #144
This commit is contained in:
parent
312eba3b7c
commit
2b97eb5018
2 changed files with 10 additions and 4 deletions
6
src/dist/js/script.min.js
vendored
6
src/dist/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -67,8 +67,14 @@
|
|||
|
||||
|
||||
// Look for supported type of storage to use
|
||||
/**
|
||||
* http://sammyjs.org/docs/api/0.7.4/all#Sammy.Store.LocalStorage
|
||||
* LocalStorage is our favorite, as it allows multiple tabs
|
||||
*/
|
||||
var storageType;
|
||||
if (Sammy.Store.isAvailable('session')) {
|
||||
if (Sammy.Store.isAvailable('local')) {
|
||||
storageType = 'local';
|
||||
} else if (Sammy.Store.isAvailable('session')) {
|
||||
storageType = 'session';
|
||||
} else if (Sammy.Store.isAvailable('cookie')) {
|
||||
storageType = 'cookie';
|
||||
|
|
Loading…
Add table
Reference in a new issue