We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e4284 commit 514af23Copy full SHA for 514af23
js/vapid.js
@@ -99,10 +99,10 @@ var vapid = {
99
return webCrypto.exportKey("jwk", this._private_key)
100
.then(k => {
101
// verifying key
102
- let xv = this.url_atob(k.x);
103
- let yv = this.url_atob(k.y);
+ let xv = String.fromCharCode.apply(null, this.url_atob(k.x));
+ let yv = String.fromCharCode.apply(null, this.url_atob(k.y));
104
// private key
105
- let dv = this.url_atob(k.d);
+ let dv = String.fromCharCode.apply(null, this.url_atob(k.d));
106
107
// verifying key (public)
108
let vk = '\x00\x04' + xv + yv;
0 commit comments