Skip to content

Commit ac0c450

Browse files
committed
final touches
1 parent b132df3 commit ac0c450

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/pages/Background/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ chrome.storage.sync.get(['displayTabPreviewFrame'], (result) => {
101101
if (result.displayTabPreviewFrame !== undefined) {
102102
displayTabPreviewFrame = result.displayTabPreviewFrame === true;
103103
} else {
104-
persistdisplayTabPreviewFrameStatus(true); // default to display tab in full
104+
persistdisplayTabPreviewFrameStatus(true); // default to display tab preview frame
105105
}
106106
});
107107

src/pages/Content/modules/tabPreviewFrame/tabPreviewFrame.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ const browserInfo = detect();
4646

4747
const TabPreviewFrame = ({ id, title, url, faviconUrl, isDark }) => {
4848
let domain = new URL(url).hostname;
49-
// console.log(faviconUrl);
5049

5150
if (domain.toLocaleLowerCase() === 'newtab') {
5251
domain = browserInfo.name + '://newtab';
52+
} else if (domain.trim().length === 0) {
53+
if (url.startsWith('file:')) {
54+
domain = 'local or shared file';
55+
}
5356
}
5457

5558
return (

src/pages/Sidebar/containers/TabsList/Tab/Tab.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const Tab = ({
218218
<ContextMenuTrigger id={id.toString()} holdToDisplay={-1}>
219219
<li
220220
ref={tabItemRef}
221-
// title={`${title}\n\n${url}`}
221+
title={!displayTabPreviewFrame ? `${title}\n\n${url}` : null}
222222
className={classNames({
223223
TabItem: true,
224224
blink: isDragging,

0 commit comments

Comments
 (0)