5 lines
315 B
JavaScript
5 lines
315 B
JavaScript
import { evalViaBridge, health } from './client.mjs';
|
|
console.log('health=', JSON.stringify(await health()));
|
|
const v = await evalViaBridge("(() => ({url: location.href, title: document.title, len: document.body ? document.body.innerText.length : 0}))()");
|
|
console.log('eval=', JSON.stringify(v).slice(0, 300));
|