Skip to content

Commit

Permalink
Remove link indicator option to simplify things
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Buck committed Jan 15, 2018
1 parent 31ee7cb commit 5db577f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions packages/core/options/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ class App extends Component {
checked={state.newWindowActive}
onClick={linkState(this, 'newWindowActive')}
/>
<Checkbox
name="showLinkIndicator"
label="Line indicator"
description="Show an indicator if line contains OctoLinker links."
checked={state.showLinkIndicator}
onClick={linkState(this, 'showLinkIndicator')}
/>
<Checkbox
name="showUpdateNotification"
label="Update notification"
Expand Down
1 change: 0 additions & 1 deletion packages/core/options/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const store = {};
const defaults = {
newWindow: false,
newWindowActive: true,
showLinkIndicator: true,
showUpdateNotification: true,
doTrack: true,
};
Expand Down
6 changes: 1 addition & 5 deletions packages/helper-insert-link/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import $ from 'jquery';
import findAndReplaceDOMText from 'findandreplacedomtext';
import * as storage from './options/storage.js';

const CLASS_NAME = 'octolinker-link';
const CLASS_INDICATOR = 'octolinker-line-indicator';
Expand All @@ -17,10 +16,7 @@ function createLinkElement(text, dataAttr = {}) {

// Add css classes
linkEl.classList.add(CLASS_NAME);

if (storage.get('showLinkIndicator')) {
linkEl.classList.add(CLASS_INDICATOR);
}
linkEl.classList.add(CLASS_INDICATOR);

// Add data-* attributes
for (const key in dataAttr) {
Expand Down

0 comments on commit 5db577f

Please sign in to comment.