hello,
when i use vue-ls package in my project(with vue-cli), it will throw error when Firefox opens.The error like "SecurityError: The operation is insecure." And, it is OK in Chrome and Opera.
version msg:
Firefox: 76.0.1 (64-bit)
Os: mac os catalina 10.15.2
vue-ls: 3.2.1
my code
// main.js
import Vue from 'vue';
import VueLs from 'vue-ls';
const options = {
namespace: 'test__', // key prefix
name: 'ls', // name variable Vue.[ls] or this.[$ls],
storage: 'local', // storage name session, local, memory
};
Vue.use(VueLs, options);
Some browsers disabling localStorage/sessionStorage in private mode, you can run a test and catch the exception before library initialization Feature-detecting localStorage
hello, when i use
vue-ls
package in my project(with vue-cli), it will throw error when Firefox opens.The error like "SecurityError: The operation is insecure." And, it is OK in Chrome and Opera.version msg:
my code
Hope for your help :)