Add ability to refresh page after camera perms were restored

This commit is contained in:
Bubka 2023-11-24 10:57:50 +01:00
parent 74bb228483
commit af38c01f0f

View File

@ -114,6 +114,10 @@
ctx.stroke() ctx.stroke()
} }
} }
function reloadLocation() {
location.reload()
}
</script> </script>
<template> <template>
@ -145,6 +149,9 @@
<FontAwesomeIcon :icon="['far', 'star']" class="mr-1" /> <FontAwesomeIcon :icon="['far', 'star']" class="mr-1" />
</div> </div>
</div> </div>
<p>
<a @click.stop="reloadLocation">{{ $t('commons.refresh') }}</a>
</p>
<!-- <div class="addressbar"> <!-- <div class="addressbar">
<FontAwesomeIcon :icon="['fas', 'video-slash']" class="mr-3 ml-2" size="xs" /> <FontAwesomeIcon :icon="['fas', 'video-slash']" class="mr-3 ml-2" size="xs" />
@ -164,7 +171,7 @@
</div> </div>
</section> </section>
</div> </div>
<div class="fullscreen-streamer"> <div v-show="!errorPhrase" class="fullscreen-streamer">
<qrcode-stream <qrcode-stream
v-if="selectedDevice !== null" v-if="selectedDevice !== null"
:constraints="{ deviceId: selectedDevice.deviceId }" :constraints="{ deviceId: selectedDevice.deviceId }"