File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/main/scala/monitor/modules Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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(),
Original file line number Diff line number Diff line change 1- addSbtPlugin(" net.lullabyte" % " sbt-chrome-plugin" % " 0.2.0 " )
1+ addSbtPlugin(" net.lullabyte" % " sbt-chrome-plugin" % " 0.2.1 " )
22addSbtPlugin(" org.scalastyle" %% " scalastyle-sbt-plugin" % " 0.6.0" )
Original file line number Diff line number Diff 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))
You can’t perform that action at this time.
0 commit comments