Skip to content

Commit

Permalink
Remove some highlighter settings for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Oct 14, 2024
1 parent 94f56f3 commit 7f7a69f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/managers/highlights-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export async function exportHighlights(): Promise<void> {
const url = URL.createObjectURL(blob);

const browserType = await detectBrowser();
const fileName = 'obsidian_web_clipper_highlights.json';
const timestamp = dayjs().format('YYYYMMDDHHmm');
const fileName = `obsidian-web-clipper-highlights-${timestamp}.json`;

if (browserType === 'safari' || browserType === 'mobile-safari') {
if (navigator.share) {
Expand Down Expand Up @@ -52,4 +53,4 @@ export async function exportHighlights(): Promise<void> {
console.error('Error exporting highlights:', error);
alert('Failed to export highlights. Please check the console for more details.');
}
}
}
2 changes: 0 additions & 2 deletions src/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ <h2>Highlighter</h2>
<div class="setting-item-control">
<select id="highlighter-behavior">
<option value="replace-content">Replace the page content</option>
<option value="prepend-highlights" style="display: none;">Add above the page content</option>
<option value="highlight-content" style="display: none;">Highlight the page content</option>
<option value="no-highlights">Do nothing</option>
</select>
</div>
Expand Down

0 comments on commit 7f7a69f

Please sign in to comment.