Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5f58470

Browse filesBrowse 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
Copy full SHA for 5f58470

File tree

2 files changed

+4
-1
lines changed
Filter options

2 files changed

+4
-1
lines changed

‎packages/core/usePermission/demo.vue

Copy file name to clipboardExpand all lines: packages/core/usePermission/demo.vue
+2Lines 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

Copy file name to clipboardExpand all lines: packages/core/usePermission/index.ts
+2-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.