Skip to content

Commit

Permalink
translate
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Feb 22, 2020
1 parent 5df87da commit 40475c7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
node_modules
package-lock.json
yarn.lock
/dist
2 changes: 1 addition & 1 deletion src/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/index.scss
Expand Up @@ -187,10 +187,9 @@ body {
left: 50%;
z-index: 1;
&.dot {
width: 8%;
height: 8%;
margin-left: -4%;
margin-top: -4%;
width: 5%;
height: 5%;
transform: translate(-50%, -50%);
display: block;
border-radius: 50%;
background-color: var(--sight-background);
Expand Down
5 changes: 3 additions & 2 deletions src/main.js
Expand Up @@ -15,7 +15,7 @@ const menu = require( './menu' )

unhandled()
debug( {
showDevTools: false,
showDevTools: is.development,
devToolsMode: 'undocked'
} )

Expand All @@ -26,7 +26,7 @@ try {
} catch ( _ ) {}

// Note: Must match `build.appId` in package.json
app.setAppUserModelId( 'com.lacymorrow.CrossOver' )
app.setAppUserModelId( 'com.lacymorrow.crossover' )

// Uncomment this before publishing your first version.
// It's commented out as it throws an error if there are no published versions.
Expand All @@ -47,6 +47,7 @@ if ( !is.development && !is.linux ) {
let mainWindow
let windowHidden = false // Maintain hidden state


// __static path
const __static =
process.env.NODE_ENV === 'development' ?
Expand Down
5 changes: 3 additions & 2 deletions src/renderer.js
@@ -1,6 +1,7 @@
( () => {

const { ipcRenderer } = require( 'electron' )
const { is } = require( 'electron-util' )
const Pickr = require( '@simonwep/pickr' )
const { debounce, prettyFilename } = require( './util' )

Expand All @@ -13,8 +14,8 @@
const sizeInput = document.querySelector( '#setting-size' )
const sizeOutput = document.querySelector( '#output-size' )

if ( process.env.NODE_ENV !== 'development' ) {

if ( !is.development ) {
window.__static = require( 'path' )
.join( __dirname, '/static' )
.replace( /\\/g, '\\\\' )
Expand Down

0 comments on commit 40475c7

Please sign in to comment.