Files
standardnotes-app-web/app/assets/javascripts/app/app.frontend.js
2017-03-09 20:07:28 -06:00

17 lines
447 B
JavaScript

'use strict';
var Neeto = window.Neeto = Neeto || {};
var SN = SN || {};
// detect IE8 and above, and edge.
// IE and Edge do not support pbkdf2 in WebCrypto, therefore we need to use CryptoJS
var IEOrEdge = document.documentMode || /Edge/.test(navigator.userAgent);
if(!IEOrEdge && (window.crypto && window.crypto.subtle)) {
Neeto.crypto = new SNCryptoWeb();
} else {
Neeto.crypto = new SNCryptoJS();
}
angular.module('app.frontend', [])