All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chrome.utils.ChromeApp.scala Maven / Gradle / Ivy

package chrome.utils

import chrome.app.runtime.Runtime
import chrome.app.runtime.bindings.{LaunchData, Request}

import scala.scalajs.js

trait ChromeApp extends js.JSApp {

  def main(): Unit = {
    Runtime.onLaunched.listen(onLaunched)
    Runtime.onRestarted.listen((_) => onRestart)
    Runtime.onEmbedRequested.listen(onEmbedRequested)
  }

  def onLaunched(launchData: LaunchData): Unit = {}

  def onRestart(): Unit = {}

  def onEmbedRequested(request: Request): Unit = {}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy