Fix options, update Vue.js detection

main
Elbert Alias 2 years ago
parent 35fe6d6148
commit c9333a53fd

@ -49,7 +49,7 @@ const Utils = {
*/
async getOption(name, defaultValue = null) {
try {
const option = await chrome.storage.local.get(name)
const option = await Utils.promisify(chrome.storage.local, 'get', name)
if (option[name] !== undefined) {
return option[name]
@ -69,7 +69,7 @@ const Utils = {
*/
async setOption(name, value) {
try {
await chrome.storage.local.set({
await Utils.promisify(chrome.storage.local, 'set', {
[name]: value,
})
} catch (error) {

@ -952,9 +952,11 @@
"css": "\\.vue-notification-group",
"description": "Vue.js is an open-source modelviewviewmodel JavaScript framework for building user interfaces and single-page applications.",
"html": "<[^>]+\\sdata-v(?:ue)?-",
"dom": ".vue-app",
"icon": "vue.svg",
"js": {
"Vue.version": "^(.+)$\\;version:\\1",
"VueRoot": "",
"__VUE_HOT_MAP__": "",
"__VUE__": "",
"vueDLL": ""
@ -1066,4 +1068,4 @@
},
"website": "http://vibecommerce.com.br"
}
}
}