Skip to content

Commit

Permalink
Merge pull request #18 from GarinZ/v1.0.8
Browse files Browse the repository at this point in the history
V1.0.8
  • Loading branch information
GarinZ authored Apr 7, 2023
2 parents 1f1611e + 63cb5e5 commit aa1ca6f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ chrome.runtime.id = 'test-id';
Object.assign(global, {
chrome,
browser: chrome,
__TARGET__: 'chrome',
});
Object.assign(global, {
$,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "link-map",
"displayName": "Link Map",
"version": "1.0.7",
"version": "1.0.8",
"browserslist": "Chrome >= 96",
"description": "Vertical Tabs Sidebar, But In Tree Structure",
"author": "Garin",
Expand Down
4 changes: 2 additions & 2 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@
"message": "Locate Active Tab Node"
},
"collapseAll": {
"message": "Expand All"
"message": "Collapse All"
},
"expandAll": {
"message": "Collapse All"
"message": "Expand All"
},
"activeOrOpen": {
"message": "Active/Open"
Expand Down
4 changes: 4 additions & 0 deletions src/config/browser-adapter-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ export const getReviewUrl = () => {
? 'https://microsoftedge.microsoft.com/addons/detail/link-map/penpmngcolockpbmeeafkmbefjijbaej'
: 'https://chrome.google.com/webstore/detail/link-map/jappgmhllahigjolfpgbjdfhciabdnde';
};

export const getNewTabUrl = () => {
return __TARGET__ === 'edge' ? 'edge://newtab/' : 'chrome://newtab/';
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import { escape } from 'lodash';
import log from 'loglevel';
import type { Tabs } from 'webextension-polyfill';

import { getNewTabUrl } from '../../../../config/browser-adapter-config';
import { getFaviconUrl } from '../../../../utils';
import type { TreeData, TreeNode } from './nodes';
import { NodeUtils } from './utils';
import { WindowNodeOperations } from './window-node-operations';

type FancytreeNode = Fancytree.FancytreeNode;
const NEW_TAB_URL = 'chrome://newtab/';
const NEW_TAB_URL = getNewTabUrl();

export interface TabData extends Tabs.Tab, TreeData {
windowId: number;
Expand Down

0 comments on commit aa1ca6f

Please sign in to comment.