mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-11 02:55:28 +00:00
fix(eslint): rules included deprecated plugin
This commit is contained in:
@@ -120,11 +120,11 @@ export default function Discover() {
|
||||
|
||||
useEffect(() => {
|
||||
function onMessage(message: MessageEvent) {
|
||||
let url = new URL(message.origin);
|
||||
const url = new URL(message.origin);
|
||||
if (!TRUSTED_HOSTS.includes(url.host)) return;
|
||||
|
||||
try {
|
||||
let data = JSON.parse(message.data);
|
||||
const data = JSON.parse(message.data);
|
||||
if (data.source === "discover") {
|
||||
switch (data.type) {
|
||||
case "init": {
|
||||
|
||||
Reference in New Issue
Block a user