Skip to content

Commit

Permalink
adding irisflame crosshairs
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Feb 28, 2020
1 parent 280364c commit b936287
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ const getImages = ( directory, level ) => {

const dirpath = directory.replace( crosshairsPath, '' )

console.log( directory )
// Filename
crosshairs.push( path.join( dirpath, filepath ) )

Expand Down Expand Up @@ -177,7 +176,7 @@ const setOpacity = opacity => {

const setPosition = ( posX, posY ) => {

console.log('Set XY: ', posX, posY)
console.log( 'Set XY:', posX, posY )

config.set( 'positionX', posX )
config.set( 'positionY', posY )
Expand Down
8 changes: 5 additions & 3 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,18 @@

const gr = document.createElement( 'OPTGROUP' )
let label = path.dirname( files[0] )
if (label.indexOf('/') === 0) {
label = label.slice(1)
if ( label.indexOf( '/' ) === 0 ) {

label = label.slice( 1 )

}

gr.label = label

for ( let i = 0; i < files.length; i++ ) {

if ( typeof files[i] === 'string' ) {

console.log(files[i])
const opt = newOption( files[i] )
gr.append( opt )

Expand Down

0 comments on commit b936287

Please sign in to comment.