INNER CODE UNIT · JavaScript

hook

lirantal/dockly · hooks/services.hook.js:5

class hook extends baseHook {
  init () {
    // on startup we first emit data from the docker server
    this.getFreshData((err, data) => {
      if (err) {
        data = {}
      }
      // emit an even for a refreshed list of services and images
      this.emit('servicesAndImagesList', data)
    })

    // on startup bind a periodical updates emitter
    this.notifyOnServiceInfo()

    if (!this.widgetsRepo.has('toolbar')) {
      return null
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…