Skip to content

Commit 602e209

Browse files
committed
Update bloecks.js
1 parent f8e4f2a commit 602e209

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

assets/js/bloecks.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ var BLOECKS = (function($) {
11191119
console.log('BLOECKS: Clipboard status response:', response);
11201120

11211121
if (response.success) {
1122-
// Always sync multi-clipboard, regardless of setting
1122+
// Always sync multi-clipboard items
11231123
if (response.multi_clipboard_items && response.multi_clipboard_items.length > 0) {
11241124
multiClipboard = response.multi_clipboard_items;
11251125
console.log('BLOECKS: Loaded', multiClipboard.length, 'items from server clipboard');
@@ -1128,11 +1128,10 @@ var BLOECKS = (function($) {
11281128
console.log('BLOECKS: Server clipboard is empty');
11291129
}
11301130

1131-
// Set multi-clipboard mode based on server setting
1132-
if (response.multi_clipboard_enabled) {
1133-
setMultiClipboardEnabled(true);
1134-
console.log('BLOECKS: Multi-clipboard enabled on server');
1135-
}
1131+
// Multi-clipboard status is controlled by the initial config, not server response
1132+
// The server response indicates permission, but JS config controls the feature
1133+
console.log('BLOECKS: Multi-clipboard enabled in JS:', isMultiClipboardEnabled);
1134+
console.log('BLOECKS: Multi-clipboard allowed by server:', response.multi_clipboard_enabled);
11361135

11371136
updatePasteButtons();
11381137
} else {

0 commit comments

Comments
 (0)