-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1617 from sacr3dc0w/swal9
SweetAlert2 v6.11.5 -> 9.5.4
- Loading branch information
Showing
7 changed files
with
258 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import 'weakmap-polyfill'; | ||
import sweetAlert from 'sweetalert2'; | ||
|
||
// WeakMap will defined in the global scope if native WeakMap is not supported. | ||
const weakMap = new WeakMap(); // eslint-disable-line no-unused-vars | ||
|
||
// Set defaults for sweetalert2 popup boxes | ||
sweetAlert.setDefaults({ | ||
const Swal = sweetAlert.mixin({ | ||
buttonsStyling: false, | ||
confirmButtonClass: 'button', | ||
cancelButtonClass: 'button', | ||
customClass: { | ||
confirmButton: 'button', | ||
cancelButton: 'button', | ||
}, | ||
}); | ||
|
||
// Re-export | ||
export default sweetAlert; | ||
export default Swal; |
Oops, something went wrong.