Changed comparison in window check

This commit is contained in:
Robert Nelson 2014-01-09 08:22:57 -08:00
parent c951b64741
commit 92adbff398
15 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
'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,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'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,
BFencrypt = openpgp.crypto.cipher.blowfish,

View File

@ -1,6 +1,6 @@
'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,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'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,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'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,
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'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'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'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,
MD5 = openpgp.crypto.hash.md5,

View File

@ -1,6 +1,6 @@
'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,
RMDstring = openpgp.crypto.hash.ripemd,

View File

@ -1,6 +1,6 @@
'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,
hash = openpgp.crypto.hash,

View File

@ -1,6 +1,6 @@
'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'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'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'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'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(),
chai = require('chai'),

View File

@ -1,6 +1,6 @@
'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'),
expect = chai.expect;

View File

@ -1,6 +1,6 @@
'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'),
expect = chai.expect;

View File

@ -10,7 +10,7 @@
<div id="mocha"></div>
<!--<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/mocha.js"></script>
<script>