peertube-plugin-livechat/conversejs/lib/utils.ts
John Livingston fd27105c2c
eslint 8.57 WIP:
* tweaking some more rules.
* fixing linting.
2024-09-09 20:01:25 +02:00

16 lines
270 B
TypeScript

// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
//
// SPDX-License-Identifier: AGPL-3.0-only
function inIframe (): boolean {
try {
return window.self !== window.top
} catch (_err) {
return true
}
}
export {
inIframe
}