Skip to content

Commit ef76066

Browse files
committed
Update Clipboard.js to v2.0
1 parent 412533a commit ef76066

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Periscope_Web_Client.meta.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// @require http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js
1717
// @require http://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js
1818
// @require https://github.com/iamcal/js-emoji/raw/master/lib/emoji.js
19-
// @require https://github.com/zenorocha/clipboard.js/raw/master/dist/clipboard.min.js
19+
// @require https://github.com/zenorocha/clipboard.js/raw/v2.0.0/dist/clipboard.min.js
2020
// @require https://github.com/le717/jquery-spoiler/raw/master/jquery.spoiler.min.js
2121
// @require https://github.com/nathancahill/Split.js/raw/master/split.min.js
2222
// @downloadURL https://github.com/Pmmlabs/OpenPeriscope/raw/master/Periscope_Web_Client.user.js

Periscope_Web_Client.user.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// @require http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js
1717
// @require http://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js
1818
// @require https://github.com/iamcal/js-emoji/raw/master/lib/emoji.js
19-
// @require https://github.com/zenorocha/clipboard.js/raw/master/dist/clipboard.min.js
19+
// @require https://github.com/zenorocha/clipboard.js/raw/v2.0.0/dist/clipboard.min.js
2020
// @require https://github.com/le717/jquery-spoiler/raw/master/jquery.spoiler.min.js
2121
// @require https://github.com/nathancahill/Split.js/raw/master/split.min.js
2222
// @downloadURL https://github.com/Pmmlabs/OpenPeriscope/raw/master/Periscope_Web_Client.user.js
@@ -837,7 +837,7 @@ Chat: function () {
837837
$(document.body).append(contextmenu).off('mousedown').mousedown(function () {
838838
contextmenu.remove();
839839
});
840-
new Clipboard('.contextmenu div');
840+
new ClipboardJS('.contextmenu div');
841841
})
842842
);
843843
}
@@ -1587,7 +1587,7 @@ function getM3U(id, jcontainer) {
15871587
jcontainer.find('.links').append('<a href="' + hls_url + '">Live M3U link</a>',
15881588
NODEJS ? [' | ', $('<a>Download</a>').click(switchSection.bind(null, 'Console', {url: hls_url, cookies: ffmpeg_cookies, name: _name, user_id: _user_id, user_name: _user_name}))] : '',
15891589
' | ', clipboardLink);
1590-
new Clipboard(clipboardLink.get(0));
1590+
new ClipboardJS(clipboardLink.get(0));
15911591
}
15921592
if (replay_url) {
15931593
var replay_base_url = replay_url.replace(/playlist.*m3u8/ig, '');
@@ -1605,7 +1605,7 @@ function getM3U(id, jcontainer) {
16051605
jcontainer.find('.links').append(link,
16061606
NODEJS ? [' | ', $('<a>Download</a>').click(switchSection.bind(null, 'Console', {url: replay_url, cookies: ffmpeg_cookies, name: _name, user_id: _user_id, user_name: _user_name}))] : '',
16071607
' | ', clipboardLink);
1608-
new Clipboard(clipboardLink.get(0));
1608+
new ClipboardJS(clipboardLink.get(0));
16091609
}
16101610
});
16111611
}

0 commit comments

Comments
 (0)