main.js 418 B

123456789101112131415161718192021222324252627282930313233343536
  1. const Appliaction = require('ee-core').Appliaction;
  2. class Main extends Appliaction {
  3. constructor() {
  4. super();
  5. }
  6. /**
  7. * core app have been loaded
  8. */
  9. async ready () {
  10. // do some things
  11. }
  12. /**
  13. * main window have been loaded
  14. */
  15. async windowReady () {
  16. // do some things
  17. }
  18. /**
  19. * before app close
  20. */
  21. async beforeClose () {
  22. // do some things
  23. }
  24. }
  25. new Main();