Changed comparison in window check
This commit is contained in:
parent
c951b64741
commit
92adbff398
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
BFencrypt = openpgp.crypto.cipher.blowfish,
|
BFencrypt = openpgp.crypto.cipher.blowfish,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
MD5 = openpgp.crypto.hash.md5,
|
MD5 = openpgp.crypto.hash.md5,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
RMDstring = openpgp.crypto.hash.ripemd,
|
RMDstring = openpgp.crypto.hash.ripemd,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var util = openpgp.util,
|
var util = openpgp.util,
|
||||||
hash = openpgp.crypto.hash,
|
hash = openpgp.crypto.hash,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var keyring = new openpgp.Keyring(),
|
var keyring = new openpgp.Keyring(),
|
||||||
chai = require('chai'),
|
chai = require('chai'),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
var openpgp = typeof window != 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
|
||||||
|
|
||||||
var chai = require('chai'),
|
var chai = require('chai'),
|
||||||
expect = chai.expect;
|
expect = chai.expect;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div id="mocha"></div>
|
<div id="mocha"></div>
|
||||||
|
|
||||||
<!--<script src="lib/jquery.min.js"></script>-->
|
<!--<script src="lib/jquery.min.js"></script>-->
|
||||||
<script src="../dist/openpgp-sa.js"></script>
|
<script src="../dist/openpgp.js"></script>
|
||||||
<script src="lib/chai.js"></script>
|
<script src="lib/chai.js"></script>
|
||||||
<script src="lib/mocha.js"></script>
|
<script src="lib/mocha.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user