mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
duo fixes to window
This commit is contained in:
@@ -1,30 +1,18 @@
|
|||||||
/**
|
/**
|
||||||
* Duo Web SDK v2
|
* Duo Web SDK v2
|
||||||
* Copyright 2017, Duo Security
|
* Copyright 2017, Duo Security
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var Duo;
|
||||||
(function (root, factory) {
|
(function (root, factory) {
|
||||||
/*eslint-disable */
|
|
||||||
if (typeof define === 'function' && define.amd) {
|
|
||||||
// AMD. Register as an anonymous module.
|
|
||||||
define([], factory);
|
|
||||||
/*eslint-enable */
|
|
||||||
} else if (typeof module === 'object' && module.exports) {
|
|
||||||
// Node. Does not work with strict CommonJS, but
|
|
||||||
// only CommonJS-like environments that support module.exports,
|
|
||||||
// like Node.
|
|
||||||
module.exports = factory();
|
|
||||||
} else {
|
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
var Duo = factory();
|
var d = factory();
|
||||||
// If the Javascript was loaded via a script tag, attempt to autoload
|
// If the Javascript was loaded via a script tag, attempt to autoload
|
||||||
// the frame.
|
// the frame.
|
||||||
Duo._onReady(Duo.init);
|
d._onReady(d.init);
|
||||||
|
|
||||||
// Attach Duo to the `window` object
|
// Attach Duo to the `window` object
|
||||||
root.Duo = Duo;
|
root.Duo = Duo = d;
|
||||||
}
|
}(window, function () {
|
||||||
}(this, function () {
|
|
||||||
var DUO_MESSAGE_FORMAT = /^(?:AUTH|ENROLL)+\|[A-Za-z0-9\+\/=]+\|[A-Za-z0-9\+\/=]+$/;
|
var DUO_MESSAGE_FORMAT = /^(?:AUTH|ENROLL)+\|[A-Za-z0-9\+\/=]+\|[A-Za-z0-9\+\/=]+$/;
|
||||||
var DUO_ERROR_FORMAT = /^ERR\|[\w\s\.\(\)]+$/;
|
var DUO_ERROR_FORMAT = /^ERR\|[\w\s\.\(\)]+$/;
|
||||||
var DUO_OPEN_WINDOW_FORMAT = /^DUO_OPEN_WINDOW\|/;
|
var DUO_OPEN_WINDOW_FORMAT = /^DUO_OPEN_WINDOW\|/;
|
||||||
|
|||||||
Reference in New Issue
Block a user