complete feathers in console (with new section)

Aug 8, 09:43 PM

Textpattern wont let me do updates:


let scriptPolicy = null;
const policyNames = [‘webui-test-script’, ‘static-types’, ‘lottie-worker-script-loader’];

if (window.trustedTypes) { for (const name of policyNames) { try { scriptPolicy = window.trustedTypes.createPolicy(name, { createScriptURL: (url) => url }); break; // Stop loop once a policy is successfully created } catch (e) { // Policy name might already exist or is blocked; try next } }
}
[ ‘https://cdn.socket.io/4.8.3/socket.io.min.js’
, ‘https://unpkg.com/@feathersjs/client@^5.0.0/dist/feathers.js’
].forEach( (src) => { let script = document.createElement(‘script’); script.src = scriptPolicy ? scriptPolicy.createScriptURL(src) : src; document.head.appendChild(script);
});
/* wait a moment….. */
const app = feathers(); const socket = io(); app.configure(feathers.socketio(socket));

Mark Edwards

,

---

Commenting is closed for this article.

---