chore: add cookie support flag
This commit is contained in:
@@ -50,6 +50,7 @@ createHoppApp("#app", {
|
|||||||
platformFeatureFlags: {
|
platformFeatureFlags: {
|
||||||
exportAsGIST: false,
|
exportAsGIST: false,
|
||||||
hasTelemetry: false,
|
hasTelemetry: false,
|
||||||
|
cookiesEnabled: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -84,27 +85,27 @@ watch(
|
|||||||
headerPaddingTop.value = "2px"
|
headerPaddingTop.value = "2px"
|
||||||
headerPaddingLeft.value = "70px"
|
headerPaddingLeft.value = "70px"
|
||||||
}
|
}
|
||||||
})()
|
|
||||||
|
|
||||||
const { pressed } = useMousePressed()
|
const { pressed } = useMousePressed()
|
||||||
|
|
||||||
document.addEventListener("mousemove", (ev) => {
|
document.addEventListener("mousemove", (ev) => {
|
||||||
const { clientX, clientY } = ev
|
const { clientX, clientY } = ev
|
||||||
|
|
||||||
const el = document.querySelector("header")
|
const el = document.querySelector("header")
|
||||||
|
|
||||||
if (!el) return
|
if (!el) return
|
||||||
|
|
||||||
const { left, top, width, height } = el.getBoundingClientRect()
|
const { left, top, width, height } = el.getBoundingClientRect()
|
||||||
|
|
||||||
if (
|
if (
|
||||||
clientX >= left &&
|
clientX >= left &&
|
||||||
clientX <= left + width &&
|
clientX <= left + width &&
|
||||||
clientY >= top &&
|
clientY >= top &&
|
||||||
clientY <= top + height
|
clientY <= top + height
|
||||||
) {
|
) {
|
||||||
if (pressed.value) {
|
if (pressed.value) {
|
||||||
appWindow.startDragging()
|
appWindow.startDragging()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
})()
|
||||||
|
|||||||
Reference in New Issue
Block a user