Skip to content

Commit

Permalink
update to latest dom.experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
bblfish committed Dec 3, 2015
1 parent a7b0322 commit ebb8b7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/scala/rww/auth/ServiceWorkerAuth.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package rww.auth

import org.scalajs.dom.crypto.{GlobalCrypto, _}
import org.scalajs.dom.experimental
import org.scalajs.dom.experimental.{FetchEvent, _}
import org.scalajs.dom.raw.{Event, Promise, ServiceWorker}
import rww.log
Expand All @@ -21,9 +22,10 @@ object ServiceWorkerAuth {

@JSExport
def run(thiz: ServiceWorker): Unit = {
import experimental.ServiceWorker._
//should also be able to access thiz as js.Dynamic.global
thiz.addEventListener("install",installListener _)
thiz.addEventListener("fetch",fetchListener _)
thiz.addInstallListener(installListener _)
thiz.addFetchListener(fetchListener _)
}

def installListener(e: Event) = {
Expand Down

0 comments on commit ebb8b7e

Please sign in to comment.