Skip to content

Commit 86f8119

Browse files
committed
1.2.6 - add option for link behavior
1 parent 89fd944 commit 86f8119

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "re-start",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"manifest_version": 3,
55
"chrome_url_overrides": {
66
"newtab": "index.html"

src/lib/components/Links.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{#each column as link}
2222
<a
2323
href={link.url}
24-
target="_blank"
24+
target={settings.linkTarget}
2525
rel="noopener noreferrer"
2626
class="link"
2727
>

src/lib/components/Settings.svelte

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,27 @@
144144
step="1"
145145
/>
146146
</div>
147+
<div class="group">
148+
<div class="setting-label">link behavior</div>
149+
<div class="radio-group">
150+
<label class="radio-label">
151+
<input
152+
type="radio"
153+
bind:group={settings.linkTarget}
154+
value="_self"
155+
/>
156+
same tab
157+
</label>
158+
<label class="radio-label">
159+
<input
160+
type="radio"
161+
bind:group={settings.linkTarget}
162+
value="_blank"
163+
/>
164+
new tab
165+
</label>
166+
</div>
167+
</div>
147168
<div class="group">
148169
<div class="links-header">
149170
<div class="setting-label">links</div>

src/lib/settings-store.svelte.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let defaultSettings = {
66
tempUnit: 'fahrenheit',
77
speedUnit: 'mph',
88
linksPerColumn: 4,
9+
linkTarget: '_self',
910
links: [
1011
{ title: 'gmail', url: 'https://mail.google.com' },
1112
{ title: 'calendar', url: 'https://calendar.google.com' },

0 commit comments

Comments
 (0)