Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeche committed Feb 7, 2016
1 parent 7b0417f commit 1d7170c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import presets from './presets';
import deviceWallFsmFactory from './device-wall-fsm';
import {UI} from './action-names';

const logger = createLogger();
const createStoreWithMiddleware = applyMiddleware(logger)(createStore);
var storeFactory = createStore;
if (process.env.NODE_ENV !== 'production') {
storeFactory = applyMiddleware(createLogger())(storeFactory);
}

export const store = createStoreWithMiddleware(reducers, {
export const store = storeFactory(reducers, {
devices,
presets,
pageUrl: null,
Expand Down
4 changes: 2 additions & 2 deletions lib/components/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export default tr.component({
</section>
<section className={cl('help-column')}>
<h3 className={cl('help-title')}>Device Wall</h3>
<p>The Device Wall provides a birds-eye overview of how your web-page may look on different devices. Each view is sized and overrides user-agent according to real device specs.</p>
<p>The Device Wall provides a birds-eye overview of how your web-page may look on different devices. Each view is sized and overrides user-agent according to real device specs and <code>&lt;meta name="viewport"&gt;</code> tag of your page.</p>
<p>In this view, hold down <strong>Shift key</strong> to enter <em>control mode</em> (screen edge will glow green). In control mode:</p>
<ul className={cl('help-list')}>
<li className={cl('help-list-item')}>use mouse wheel to zoom in and out;</li>
<li className={cl('help-list-item')}>drag view to pan around.</li>
</ul>
<p>If you don’t see glowing screen edge while holding Shift key, click outside device view and try again.</p>
<p>If you don’t see glowing screen edge while holding Shift key, click on gray area outside device view and try again.</p>
</section>
</section>
<footer className={cl('help-footer')}>
Expand Down

0 comments on commit 1d7170c

Please sign in to comment.