File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/scala/org/scalajs/dom/crypto Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import scala.scalajs.js
4
4
import scala .scalajs .js .annotation ._
5
5
import scala .scalajs .js .typedarray .ArrayBufferView
6
6
7
+ @ deprecated(" use dom.crypto.crypto instead" , " 2.0.0" )
7
8
@ js.native
8
9
@ JSGlobalScope
9
10
object GlobalCrypto extends js.Object {
Original file line number Diff line number Diff line change 1
1
package org .scalajs .dom
2
2
3
3
import scala .scalajs .js
4
+ import scala .scalajs .js .annotation ._
4
5
import scala .scalajs .js .typedarray .{ArrayBufferView , ArrayBuffer , Uint8Array }
5
6
import scala .scalajs .js .|
6
7
7
8
import scala .language .implicitConversions
8
9
9
10
package object crypto {
10
- val crypto = GlobalCrypto .crypto
11
+ @ js.native
12
+ @ JSGlobal (" crypto" )
13
+ val crypto : Crypto = js.native
11
14
12
15
type BigInteger = Uint8Array
13
16
You can’t perform that action at this time.
0 commit comments