diff options
| author | XhmikosR <[email protected]> | 2020-11-21 16:22:08 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-21 16:22:08 +0200 |
| commit | f4457bca0274cbe02422434294e3c6a006da7750 (patch) | |
| tree | 33d4d96a0a57a149870688e57be14c13abcae734 /js/src | |
| parent | 358c36d4b59b2beb2ad23244fc44c2464471b680 (diff) | |
| download | bootstrap-f4457bca0274cbe02422434294e3c6a006da7750.tar.xz bootstrap-f4457bca0274cbe02422434294e3c6a006da7750.zip | |
Be consistent with Popper's name. (#32224)
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/dropdown.js | 6 | ||||
| -rw-r--r-- | js/src/tooltip.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index c262997ce..b9f5a4cd3 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -156,10 +156,10 @@ class Dropdown { return } - // Disable totally Popper.js for Dropdown in Navbar + // Totally disable Popper for Dropdowns in Navbar if (!this._inNavbar) { if (typeof Popper === 'undefined') { - throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)') + throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)') } let referenceElement = this._element @@ -329,7 +329,7 @@ class Dropdown { } } - // Disable Popper.js if we have a static display + // Disable Popper if we have a static display if (this._config.display === 'static') { popperConfig.modifiers.applyStyle = { enabled: false diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 7b115a69b..b2495a3e1 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -125,7 +125,7 @@ const TRIGGER_MANUAL = 'manual' class Tooltip { constructor(element, config) { if (typeof Popper === 'undefined') { - throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)') + throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)') } // private |
