File tree 3 files changed +10
-0
lines changed
src/main/scala/org/scalajs/dom
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -25954,6 +25954,7 @@ package[SO] @js.native @JSGlobal("console") val console: Console
25954
25954
package[SO] lazy val css: DeprecatedCSSAliases.type (@deprecated in 2.0.0)
25955
25955
package[SO] @js.native @JSGlobal("document") val document: html.Document
25956
25956
package[SO] @js.native @JSGlobal("fetch") def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response]
25957
+ package[SO] @js.native @JSGlobal("crypto") val webcrypto: Crypto
25957
25958
package[SO] @js.native @JSGlobal("window") val window: Window
25958
25959
raw[SO] type AbstractWorker = dom.AbstractWorker (@deprecated in 2.0.0)
25959
25960
raw[SO] type AnalyserNode = dom.AnalyserNode (@deprecated in 2.0.0)
Original file line number Diff line number Diff line change @@ -25954,6 +25954,7 @@ package[SO] @js.native @JSGlobal("console") val console: Console
25954
25954
package[SO] lazy val css: DeprecatedCSSAliases.type (@deprecated in 2.0.0)
25955
25955
package[SO] @js.native @JSGlobal("document") val document: html.Document
25956
25956
package[SO] @js.native @JSGlobal("fetch") def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response]
25957
+ package[SO] @js.native @JSGlobal("crypto") val webcrypto: Crypto
25957
25958
package[SO] @js.native @JSGlobal("window") val window: Window
25958
25959
raw[SO] type AbstractWorker = dom.AbstractWorker (@deprecated in 2.0.0)
25959
25960
raw[SO] type AnalyserNode = dom.AnalyserNode (@deprecated in 2.0.0)
Original file line number Diff line number Diff line change @@ -104,4 +104,12 @@ package object dom {
104
104
*/
105
105
type HashAlgorithmIdentifier = HashAlgorithm | String
106
106
107
+ /** This is the same as `crypto` in JS.
108
+ *
109
+ * To maintain backwards-source-compatibility with scala-js-dom v1, `crypto` in scala-js-dom is retained as a package
110
+ * object.
111
+ */
112
+ @ js.native
113
+ @ JSGlobal (" crypto" )
114
+ val webcrypto : Crypto = js.native
107
115
}
You can’t perform that action at this time.
0 commit comments