Skip to content

Commit

Permalink
add jpeg saving
Browse files Browse the repository at this point in the history
  • Loading branch information
neelr committed Nov 3, 2019
1 parent 3bdcc70 commit cfdaabe
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 348 deletions.
4 changes: 1 addition & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ var url = require("url");
var path = require('path')
const {shell, app, BrowserWindow, protocol } = require('electron')

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow () {

Expand All @@ -19,7 +17,7 @@ function createWindow () {
})
if (process.env.NODE_ENV !== "dev") {
win.loadURL(url.format({
pathname: 'index.html', /* Attention here: origin is path.join(__dirname, 'index.html') */
pathname: 'index.html',
protocol: 'file',
slashes: true
}))
Expand Down
1 change: 0 additions & 1 deletion components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default class Layout extends React.Component {
<div>
<Head>
<title>the debate timer</title>
<script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</Head>
<Sidebar display={this.props.display}>
{this.props.children}
Expand Down
6 changes: 3 additions & 3 deletions components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class Sidebar extends React.Component {
<p>NegPrep</p>
</div>
<div className="foot">
<p>Made with πŸ’– by <a href="https://github.com/hacker719">@Hacker719</a></p>
<p>Made with πŸ’– by <a href="https://github.com/neelr">@neelr</a></p>
</div>
<style jsx>{`
.foot {
Expand Down Expand Up @@ -146,7 +146,7 @@ export default class Sidebar extends React.Component {
<p>NegPrep</p>
</div>
<div className="foot">
<p>Made with πŸ’– by <a href="https://github.com/hacker719">@Hacker719</a></p>
<p>Made with πŸ’– by <a href="https://github.com/neelr">@neelr</a></p>
</div>
<style jsx>{`
.foot {
Expand Down Expand Up @@ -213,7 +213,7 @@ export default class Sidebar extends React.Component {
<p>NegPrep</p>
</div>
<div className="foot">
<p>Made with πŸ’– by <a href="https://github.com/hacker719">@Hacker719</a></p>
<p>Made with πŸ’– by <a href="https://github.com/neelr">@neelr</a></p>
</div>
<style jsx>{`
.foot {
Expand Down
Loading

0 comments on commit cfdaabe

Please sign in to comment.