From ab39d42f503691ec8f5dc44e55cd2047bc806de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Tue, 30 Apr 2024 09:33:13 +1000 Subject: [PATCH] Update HOWTO.md - syntax highlight examples --- HOWTO.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HOWTO.md b/HOWTO.md index d36508e..5ff25c6 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -10,7 +10,7 @@ You can visit https://permission.site/pepc for a quick example and test. To add the PEPC element to your page simply include it as you would any other HTML element. It does not have an end tag or contents. -``` +```HTML ``` @@ -18,7 +18,7 @@ Current supported `type` attribute values (on Chrome) are: `"camera"`, `"microph In order to make use of the permission you can use the permissions API to listen to permission status changes. This has the advantage that you will catch all permission status changes. -``` +```JS navigator.permissions.query({name: "camera"}) .then((permissionStatus) => { permissionStatus.onchange = () => {