File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/devtools/client/components Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
const client = useClient ()
3
3
4
4
const isInPopup = window .__NUXT_DEVTOOLS_IS_POPUP__
5
+ const isHttps = computed (() => window .location .protocol === ' https:' )
5
6
6
7
const showInfo = ref (false )
7
8
const copy = useCopy ()
@@ -17,7 +18,7 @@ function popup() {
17
18
18
19
<template >
19
20
<template v-if =" ! isInPopup " >
20
- <NButton v-if =" client?.devtools.popup" n =" sm primary" @click =" popup()" >
21
+ <NButton v-if =" client?.devtools.popup && isHttps " n =" sm primary" @click =" popup()" >
21
22
<div carbon-launch /> Popup
22
23
</NButton >
23
24
<template v-else >
@@ -45,6 +46,12 @@ function popup() {
45
46
</NButton >
46
47
and restart the browser.
47
48
</p >
49
+ <NTip v-if =" !isHttps" class =" mb-4" n =" orange" >
50
+ Please note that the popup feature only works when your server is running under HTTPS.
51
+ <NuxtLink to =" https://nuxt.com/docs/api/nuxt-config#https" target =" _blank" >
52
+ Learn how to run your server with https on Nuxt's Documentation
53
+ </NuxtLink >
54
+ </NTip >
48
55
<div >
49
56
<NButton @click =" showInfo = false" >
50
57
Close
You can’t perform that action at this time.
0 commit comments