8000 feat(usePermission): add local-fonts permission (#4098) · vueuse/vueuse@5f58470 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 5f58470

Browse files
seanmcbroomantfuautofix-ci[bot]
authored
feat(usePermission): add local-fonts permission (#4098)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 1c12427 commit 5f58470

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/core/usePermission/demo.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const paymentHandler = usePermission('payment-handler')
1818
const persistentStorage = usePermission('persistent-storage')
1919
const push = usePermission('push')
2020
const speaker = usePermission('speaker')
21+
const localFonts = usePermission('local-fonts')
2122
2223
const code = computed(() => YAML.dump(reactive({
2324
accelerometer,
@@ -35,6 +36,7 @@ const code = computed(() => YAML.dump(reactive({
3536
persistentStorage,
3637
push,
3738
speaker,
39+
localFonts,
3840
})))
3941
</script>
4042

packages/core/usePermission/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ type DescriptorNamePolyfill =
2121
'payment-handler' |
2222
'persistent-storage' |
2323
'push' |
24-
'speaker'
24+
'speaker' |
25+
'local-fonts'
2526

2627
export type GeneralPermissionDescriptor =
2728
| PermissionDescriptor

0 commit comments

Comments
 (0)
0