Compare commits
2
Commits
b57e5d454b
...
7b451bae86
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b451bae86 | ||
|
|
1925987459 |
@@ -11,3 +11,6 @@ companion/datascape-companion-*
|
||||
|
||||
# Editor build tooling deps (the built bundle is committed; node_modules is not)
|
||||
editor-build/node_modules/
|
||||
|
||||
AGENTS.md
|
||||
CLAUDE.md
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# CLAUDE.md
|
||||
|
||||
I want to understand every line of code that goes into this project. Never create, edit, move, rename, or delete project files unless I explicitly ask you to do so. Instead, show me every proposed edit in the chat so I can type it in manually.
|
||||
|
||||
Do not run commands that modify project files, install dependencies, or change repository state unless I explicitly request that action. Instead, show me those commands in the chat so I can run them manually.
|
||||
|
||||
I'm an experienced developer. Do not explain syntax, APIs, programming concepts, or implementation details unless explicitly asked.
|
||||
@@ -186,7 +186,19 @@
|
||||
});
|
||||
}
|
||||
|
||||
function isMobileDevice() {
|
||||
// The companion only ships for Windows and Linux desktops, so skip it
|
||||
// on phones/tablets. Checks the UA and falls back to "touch is the only
|
||||
// pointer" so narrow desktop windows still get the companion.
|
||||
if (/Android|iPhone|iPad|iPod|Mobi/i.test(navigator.userAgent)) return true;
|
||||
return window.matchMedia('(pointer: coarse)').matches &&
|
||||
!window.matchMedia('(any-pointer: fine)').matches;
|
||||
}
|
||||
|
||||
function init() {
|
||||
// Every companion element is rendered hidden, so bailing out here
|
||||
// leaves the status icon and reveal buttons invisible on mobile.
|
||||
if (isMobileDevice()) return;
|
||||
probeStatus().then(function () {
|
||||
updateFooterIcon();
|
||||
wireFileLinks();
|
||||
|
||||
Reference in New Issue
Block a user