Skip to content

Commit

Permalink
Cleanup after update to scalajs-dom-2.8.0
Browse files Browse the repository at this point in the history
The PR 'Add Navigator's ProtocolHandler methods #808'
scala-js/scala-js-dom#808
Was merged and release on this version of scalajs-dom
  • Loading branch information
FabioPinheiro committed Sep 29, 2023
1 parent 8d4e918 commit e6586e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 73 deletions.
8 changes: 4 additions & 4 deletions webapp/src/main/scala/fmgp/webapp/SandboxSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ object SandboxSettings {
button(
"Register URL protocol handler: web",
onClick --> { _ =>
val n = dom.window.navigator.asInstanceOf[dom.NavigatorProtocolHandler]
val n = dom.window.navigator
n.registerProtocolHandler("did", "#/resolver/%s")
println("""registerProtocolHandler("did", "#/resolver/%s")""")
},
),
button(
"Unregister URL protocol handler: web",
onClick --> { _ =>
val n = dom.window.navigator.asInstanceOf[dom.NavigatorProtocolHandler]
val n = dom.window.navigator
n.unregisterProtocolHandler("did", "#/resolver/%s")
println("""unregisterProtocolHandler("did", "#/resolver/%s")""")
},
Expand All @@ -41,15 +41,15 @@ object SandboxSettings {
button(
"Register URL protocol handler: web+did",
onClick --> { _ =>
val n = dom.window.navigator.asInstanceOf[dom.NavigatorProtocolHandler]
val n = dom.window.navigator
n.registerProtocolHandler("web+did", "#/resolver/%s")
println("""registerProtocolHandler("web+did", "#/resolver/%s")""")
},
),
button(
"Unregister URL protocol handler: web+did",
onClick --> { _ =>
val n = dom.window.navigator.asInstanceOf[dom.NavigatorProtocolHandler]
val n = dom.window.navigator
n.unregisterProtocolHandler("web+did", "#/resolver/%s")
println("""unregisterProtocolHandler("web+did", "#/resolver/%s")""")
},
Expand Down

This file was deleted.

0 comments on commit e6586e2

Please sign in to comment.