mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-26 09:35:52 +00:00
- Replace user agent detection with capability-based detection - Support any touch device (iPad, Android, Surface, etc.) - Add smart detection for hybrid devices (touch + trackpad) - Add user preference support (auto/always/never) - Add keyboard mode toggle button in mobile controls - Fix landscape mode detection on all touch devices - Use hardware capabilities instead of brittle UA strings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
479 B
JavaScript
18 lines
479 B
JavaScript
'use strict';
|
|
|
|
const BINARY_TYPES = ['nodebuffer', 'arraybuffer', 'fragments'];
|
|
const hasBlob = typeof Blob !== 'undefined';
|
|
|
|
if (hasBlob) BINARY_TYPES.push('blob');
|
|
|
|
module.exports = {
|
|
BINARY_TYPES,
|
|
EMPTY_BUFFER: Buffer.alloc(0),
|
|
GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
|
|
hasBlob,
|
|
kForOnEventAttribute: Symbol('kIsForOnEventAttribute'),
|
|
kListener: Symbol('kListener'),
|
|
kStatusCode: Symbol('status-code'),
|
|
kWebSocket: Symbol('websocket'),
|
|
NOOP: () => {}
|
|
};
|