From 78da0647b14b92087ea73e807a627696383a2cff Mon Sep 17 00:00:00 2001 From: Arash <38922203+arashsheyda@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:41:25 -0700 Subject: [PATCH] fix(pip): check for https support --- .../client/components/PictureInPictureButton.vue | 9 ++++++++- .../client/components/PictureInPictureInfoDialog.vue | 0 2 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 packages/devtools/client/components/PictureInPictureInfoDialog.vue diff --git a/packages/devtools/client/components/PictureInPictureButton.vue b/packages/devtools/client/components/PictureInPictureButton.vue index ed956c8518..4cc4a44e99 100644 --- a/packages/devtools/client/components/PictureInPictureButton.vue +++ b/packages/devtools/client/components/PictureInPictureButton.vue @@ -2,6 +2,7 @@ const client = useClient() const isInPopup = window.__NUXT_DEVTOOLS_IS_POPUP__ +const isHttps = computed(() => window.location.protocol === 'https:') const showInfo = ref(false) const copy = useCopy() @@ -17,7 +18,7 @@ function popup() {