mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-24 14:13:06 +02:00
* Fixed incorrect instruction: "Press ⌘ to copy" It needed to be "Press ⌘C to copy" * Updated to concatenate copy string Updated copy command to concatenated string to prevent potential issues * Updated the way the copy string concatenates As per excellent suggestion by @tomlutzenberger * Removed semicolon line endings ;P * var not const or let
This commit is contained in:
@@ -73,7 +73,8 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
clipboard.on('error', function (e) {
|
clipboard.on('error', function (e) {
|
||||||
var fallbackMsg = /Mac/i.test(navigator.userAgent) ? 'Press \u2318 to copy' : 'Press Ctrl-C to copy'
|
var modifierKey = /Mac/i.test(navigator.userAgent) ? '\u2318' : 'Ctrl-'
|
||||||
|
var fallbackMsg = 'Press ' + modifierKey + 'C to copy'
|
||||||
|
|
||||||
$(e.trigger)
|
$(e.trigger)
|
||||||
.attr('title', fallbackMsg)
|
.attr('title', fallbackMsg)
|
||||||
|
Reference in New Issue
Block a user