channel-worker 2.5.72 → 2.5.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -641,8 +641,16 @@ async function hasVisibleReelComposer(page) {
|
|
|
641
641
|
const aria = dlg.getAttribute('aria-label') || '';
|
|
642
642
|
const text = (dlg.innerText || '').slice(0, 500);
|
|
643
643
|
const signature = `${aria}\n${text}`;
|
|
644
|
-
|
|
644
|
+
// Dấu hiệu composer phải xét TRƯỚC dòng loại trừ editor bìa. Biến thể
|
|
645
|
+
// INLINE dựng editor "Chỉnh sửa hình thu nhỏ" HẲN BÊN TRONG dialog
|
|
646
|
+
// composer, nên innerText của composer chứa luôn marker đó: loại trừ
|
|
647
|
+
// trước là ăn mất chính composer → báo "composer closed after saving
|
|
648
|
+
// thumbnail" dù composer còn nguyên và thumb đã dán (6 lượt fail
|
|
649
|
+
// 03-04/09, ảnh dump composer-closed-after-thumb-save cho thấy panel
|
|
650
|
+
// bìa + nút "Gỡ" vẫn hiện trong composer). Modal bìa độc lập không có
|
|
651
|
+
// chữ "thước phim"/"reel" trong text nên vẫn bị loại đúng ở dòng sau.
|
|
645
652
|
if (/Tạo thước phim|Chỉnh sửa thước phim|Cài đặt thước phim|Create (?:a )?reel|Edit reel|Reel settings/i.test(signature)) return true;
|
|
653
|
+
if (/Chỉnh sửa hình thu nhỏ|Edit thumbnail/i.test(signature)) continue;
|
|
646
654
|
}
|
|
647
655
|
return false;
|
|
648
656
|
}).catch(() => false);
|