123456789101112131415161718192021222324252627 |
- 'use strict';
- module.exports = {
- load () {
- // execute when package loaded
- },
- unload () {
- // execute when package unloaded
- },
- // register your ipc messages here
- messages: {
- 'open' () {
- // open entry panel registered in package.json
- Editor.Panel.open('compressImages');
- },
- 'say-hello' () {
- Editor.log('Hello World!');
- // send ipc message to panel
- Editor.Ipc.sendToPanel('compressImages', 'compressImages:hello');
- },
- 'clicked' () {
- Editor.log('Button clicked!');
- }
- },
- };
|