Skip to content

Commit 9cc5356

Browse files
committed
update dependecies
1 parent 65a54c7 commit 9cc5356

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lazy val root = project.in(file("."))
77
.settings(
88
name := "System Monitor",
99
version := "0.1.0",
10-
scalaVersion := "2.11.7",
10+
scalaVersion := "2.11.8",
1111
scalacOptions ++= Seq(
1212
"-language:implicitConversions",
1313
"-language:existentials",
@@ -20,7 +20,7 @@ lazy val root = project.in(file("."))
2020
persistLauncher in Test := false,
2121
relativeSourceMaps := true,
2222
libraryDependencies ++= Seq(
23-
"org.scala-js" %%% "scalajs-dom" % "0.8.0" withSources() withJavadoc(),
23+
"org.scala-js" %%% "scalajs-dom" % "0.9.0" withSources() withJavadoc(),
2424
"com.github.japgolly.scalajs-react" %%% "core" % "0.9.1" withSources() withJavadoc(),
2525
"com.github.japgolly.scalajs-react" %%% "extra" % "0.9.1" withSources() withJavadoc(),
2626
"com.github.japgolly.scalacss" %%% "core" % "0.3.0" withSources() withJavadoc(),

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("net.lullabyte" % "sbt-chrome-plugin" % "0.2.0")
1+
addSbtPlugin("net.lullabyte" % "sbt-chrome-plugin" % "0.2.1")
22
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.6.0")

src/main/scala/monitor/modules/Network.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ object Network extends Module {
1717
case class Backend(scope: BackendScope[_, State]) {
1818

1919
def init() = {
20-
scope.modState(_.copy(online = dom.navigator.onLine))
20+
scope.modState(_.copy(online = dom.window.navigator.onLine))
2121
dom.window.addEventListener("online", (e: dom.Event) => {
22-
scope.modState(_.copy(online = dom.navigator.onLine))
22+
scope.modState(_.copy(online = dom.window.navigator.onLine))
2323
})
2424
dom.window.addEventListener("offline", (e: dom.Event) => {
25-
scope.modState(_.copy(online = dom.navigator.onLine))
25+
scope.modState(_.copy(online = dom.window.navigator.onLine))
2626
})
2727
chrome.system.network.Network.getNetworkInterfaces.foreach(ifaces => {
2828
scope.modState(_.copy(interfaces = ifaces))

0 commit comments

Comments
 (0)