mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-11 12:27:13 +00:00
Checkpoint Odysseus local update
This commit is contained in:
+4
-1
@@ -6,7 +6,10 @@ import Storage from './storage.js';
|
||||
function clearFreshComposerRestore() {
|
||||
const msgInput = document.getElementById('message');
|
||||
if (!msgInput) return;
|
||||
const hasSessionTarget = !!(window.location.hash || Storage.get('lastSessionId'));
|
||||
const hash = window.location.hash || '';
|
||||
const isEntityHash = /^#(?:document|note|image|email|event|task|skill|research)-/.test(hash)
|
||||
|| /^#open=notes¬e=/.test(hash);
|
||||
const hasSessionTarget = !!((hash && !isEntityHash) || Storage.get('lastSessionId'));
|
||||
if (hasSessionTarget) return;
|
||||
if (msgInput.value) {
|
||||
msgInput.value = '';
|
||||
|
||||
Reference in New Issue
Block a user