blacklight-frontend
Advanced tools
Comparing version
@@ -444,3 +444,3 @@ "use strict"; | ||
Blacklight.modal.hide = function (el) { | ||
if (bootstrap.Modal.VERSION >= "5") { | ||
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") { | ||
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide(); | ||
@@ -453,3 +453,3 @@ } else { | ||
Blacklight.modal.show = function (el) { | ||
if (bootstrap.Modal.VERSION >= "5") { | ||
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") { | ||
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show(); | ||
@@ -456,0 +456,0 @@ } else { |
@@ -209,3 +209,3 @@ /* | ||
Blacklight.modal.hide = function(el) { | ||
if (bootstrap.Modal.VERSION >= "5") { | ||
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") { | ||
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).hide(); | ||
@@ -218,3 +218,3 @@ } else { | ||
Blacklight.modal.show = function(el) { | ||
if (bootstrap.Modal.VERSION >= "5") { | ||
if (typeof bootstrap !== 'undefined' && typeof bootstrap.Modal !== 'undefined' && bootstrap.Modal.VERSION >= "5") { | ||
bootstrap.Modal.getOrCreateInstance(el || document.querySelector(Blacklight.modal.modalSelector)).show(); | ||
@@ -221,0 +221,0 @@ } else { |
{ | ||
"name": "blacklight-frontend", | ||
"version": "7.22.1", | ||
"version": "7.25.0", | ||
"description": "[](https://travis-ci.com/projectblacklight/blacklight) [](http://badge.fury.io/rb/blacklight) [](https://coveralls.io/github/projectblacklight/blacklight?branch=main)", | ||
@@ -5,0 +5,0 @@ "main": "app/assets/javascripts/blacklight", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
66122
0.68%1
Infinity%