Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit fadba18

Browse files
committed
Update touch device check in content.js
1 parent aedc26b commit fadba18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ mutationObserverManipulationButtons = new MutationObserver(function (mutations)
23752375
divForTheButton.appendChild(elementToAdd);
23762376
elementToAdd.addEventListener("click", async function () {
23772377
// If it's a mobile device
2378-
if (typeof screen.orientation !== 'undefined') {
2378+
if ('ontouchstart' in window || navigator.maxTouchPoints) {
23792379
dataToWriteToAFile = await seekForMessagesToExportInChat3();
23802380
} else {
23812381
dataToWriteToAFile = await seekForMessagesToExportInChat2();

0 commit comments

Comments
 (0)