SYNC: Merge pull request #14 from dbgate/ai-sql

This commit is contained in:
Jan Prochazka
2025-10-14 11:01:33 +02:00
committed by Diflow
parent 23fb5852ba
commit 5e2cdca103
7 changed files with 179 additions and 82 deletions

View File

@@ -21,8 +21,8 @@ function getParsedLocalStorage(key) {
const saveHandlersList = [];
export default function useEditorData({ tabid, reloadToken = 0, loadFromArgs = null, onInitialData = null }) {
const localStorageKey = `tabdata_editor_${tabid}`;
export default function useEditorData({ tabid, reloadToken = 0, loadFromArgs = null, onInitialData = null, editorKeyword = 'editor' }) {
const localStorageKey = `tabdata_${editorKeyword}_${tabid}`;
let changeCounter = 0;
let savedCounter = 0;