Skip to content

Commit

Permalink
Actually fix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 22, 2015
1 parent d1939e5 commit 1979107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var fs = require('fs'),
var basePath = process.cwd(),
baseName,
filePath,
revealPath = __dirname + '/../node_modules/reveal.js',
revealPath = path.resolve(require.resolve('reveal.js'), '..', '..'),
theme = 'black',
highlightTheme = 'zenburn';

Expand Down
2 changes: 1 addition & 1 deletion bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var opts = {
host: 'localhost',
port: 1948,
userBasePath: process.cwd(),
revealBasePath: path.join(serverBasePath, 'node_modules', 'reveal.js'),
revealBasePath: path.resolve(require.resolve('reveal.js'), '..', '..'),
template: fs.readFileSync(path.join(serverBasePath, 'template', 'reveal.html')).toString(),
templateListing: fs.readFileSync(path.join(serverBasePath, 'template', 'listing.html')).toString(),
theme: 'black',
Expand Down

0 comments on commit 1979107

Please sign in to comment.