Ahmad Kholid 3 years ago
parent
commit
21b80f61dc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      package.json
  2. 1 1
      src/composable/hasPermissions.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "automa",
-  "version": "1.4.4",
+  "version": "1.5.0",
   "description": "An extension for automating your browser by connecting blocks",
   "license": "MIT",
   "repository": {

+ 1 - 1
src/composable/hasPermissions.js

@@ -8,7 +8,7 @@ export function useHasPermissions(permissions) {
     hasPermissions[name] = status;
   }
   function request() {
-    const reqPermissions = permissions.map(
+    const reqPermissions = permissions.filter(
       (permission) => !hasPermissions[permission]
     );