Add standalone support

This commit is contained in:
Robert Nelson
2014-01-09 07:31:00 -08:00
parent acb537bea3
commit 4cabe075d5
17 changed files with 89 additions and 37 deletions

View File

@@ -1,7 +1,8 @@
'use strict';
var openpgp = require('openpgp'),
chai = require('chai'),
var openpgp = typeof window !== 'undefined' && window.openpgp ? window.openpgp : require('openpgp');
var chai = require('chai'),
expect = chai.expect;
describe('Basic', function() {