mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-02 04:59:23 -05:00
574088ea55
- describe extension events - link drivers documentation
8 lines
215 B
JavaScript
8 lines
215 B
JavaScript
console.log('importing something...');
|
|
const { testval } = extension.import('exports_something');
|
|
console.log(testval);
|
|
|
|
extension.on('hello', event => {
|
|
console.log(`received "hello" from: ${event.from}`);
|
|
});
|