Skip to content

Commit 85a752c

Browse files
authored
docs(useWakeLock): fix demo (#3153)
1 parent 33853b4 commit 85a752c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/useWakeLock/demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useWakeLock } from '@vueuse/core'
55
const wakeLock = reactive(useWakeLock())
66
const text = computed(() => wakeLock.isActive ? 'OFF' : 'ON')
77
function onClick() {
8-
return wakeLock.isActive ? wakeLock.request('screen') : wakeLock.release()
8+
return wakeLock.isActive ? wakeLock.release() : wakeLock.request('screen')
99
}
1010
</script>
1111

0 commit comments

Comments
 (0)