Skip to content

Commit

Permalink
Checkbox functionality + Settings + Other improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tarborlevan committed May 7, 2024
1 parent 72d8d6e commit cf39b8f
Show file tree
Hide file tree
Showing 31 changed files with 664 additions and 365 deletions.
8 changes: 4 additions & 4 deletions _test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function fetchOpenTabs() {

function fetchTabsFromCanvas() {
let canvasTabsMap = new Map();
return new Promise((resolve, reject) => {
socket.emit('documents:get', { type: 'data/abstraction/tab'}, (res) => {
return new Promise(async (resolve, reject) => {
socket.emit('documents:get', { type: await getSchemaTypes() }, (res) => {
console.log('background.js | Tabs fetched: ', res);
if (!res || res.status === 'error') resolve(canvasTabsMap) // TODO: Handle error

Expand Down Expand Up @@ -112,7 +112,7 @@ function fetchContextUrl() {
}

function fetchTabSchema() {
socket.emit('db:schema:get', { type: 'data/abstraction/tab', version: '2' }, function (res) {
socket.emit('db:schema:get', { type: getSchemaTypes(), version: '2' }, function (res) {
if (!res || res.status === 'error') {
console.error('background.js | Tab schema not found');
}
Expand All @@ -125,7 +125,7 @@ function fetchTabSchema() {
function fetchStoredUrls() {
socket.emit('listDocuments', {
context: context.url,
type: 'data/abstraction/tab',
type: getSchemaTypes(),
}, (data) => {
tabUrls = data;
console.log('background.js | Stored URLs fetched: ', tabUrls);
Expand Down
Loading

0 comments on commit cf39b8f

Please sign in to comment.