Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Manually fix the remaining eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kusold committed Apr 4, 2018
1 parent 1a4575e commit 6d1fab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion auth0-account-link.extension.2.2.0.js

This file was deleted.

3 changes: 1 addition & 2 deletions lib/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const defTemplate = require('../templates/utils/defaultTemplate');

export const STATUS_SUCCESSFUL = 'ok';
export const STATUS_ERRORED = 'error';
const DEFAULT_LOCALE = 'en';

// Temporal dummy storage accessor methods
const defaultSettingsResponse = {
Expand All @@ -16,8 +17,6 @@ const defaultSettingsResponse = {
removeOverlay: false
};

const DEFAULT_LOCALE = 'en';

function getSettings() {
return getStorage()
.read()
Expand Down
6 changes: 4 additions & 2 deletions templates/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const defaultTemplate = require('./utils/defaultTemplate');
const get = require('../lib/db').getStorage;
const getStorage = require('../lib/db').get;

const buildAuth0Widget = require('./utils/auth0widget');
const buildExtensionScripts = require('./utils/extensionScripts');
Expand All @@ -13,7 +13,9 @@ const render = (template, locals = {}) => {
return template.replace(VAR_REGEX, (match, name) => locals[name] || '');
};

module.exports = ({ stylesheetTag, customCSSTag, currentUser, matchingUsers, dynamicSettings, identities, locale }) =>
module.exports = ({
stylesheetTag, customCSSTag, currentUser, matchingUsers, dynamicSettings, identities, locale
}) =>
Promise.all([buildAuth0Widget(dynamicSettings, identities, locale), getStorage().read()])
.then(([widget, data]) => {
const template = data.settings ? data.settings.template : defaultTemplate;
Expand Down

0 comments on commit 6d1fab2

Please sign in to comment.