Milestone v1 (v2.0.0): Mokosh — Session Capture #1
@@ -361,11 +361,17 @@ async function createArchive(
|
||||
logger.log('✓ Added screenshot');
|
||||
|
||||
// Добавляем метаданные
|
||||
// IN-01 fix: read version from manifest at runtime instead of the
|
||||
// hardcoded '1.0.0'. Previously the metadata would silently lie about
|
||||
// the running version once manifest.json bumps to 1.0.1+. The Chrome
|
||||
// runtime API is always available in the SW context, so no fallback
|
||||
// is needed.
|
||||
const manifest = chrome.runtime.getManifest();
|
||||
const metadata: SessionMetadata = {
|
||||
timestamp: new Date().toISOString(),
|
||||
url: new URL(chrome.runtime.getURL('')).origin,
|
||||
userAgent: navigator.userAgent,
|
||||
extensionVersion: '1.0.0',
|
||||
extensionVersion: manifest.version,
|
||||
videoBufferSeconds: 30,
|
||||
logDurationMinutes: 10,
|
||||
totalEvents: rrwebEvents.length + userEvents.length
|
||||
|
||||
Reference in New Issue
Block a user