check also uppercases

pull/1/head
LianaHus 5 years ago committed by Liana Husikyan
parent bde41fa8ab
commit 057f13b570
  1. 4
      src/app/tabs/compileTab/compilerContainer.js

@ -45,8 +45,8 @@ class CompilerContainer {
isSolFileSelected (currentFile = '') {
if (!currentFile) currentFile = this.config.get('currentFile')
if (!currentFile) return false
return currentFile.substr(currentFile.length - 3, currentFile.length) === 'sol' ||
currentFile.substr(currentFile.length - 3, currentFile.length) === 'yul'
const extention = currentFile.substr(currentFile.length - 3, currentFile.length)
return extention.toLowerCase() === 'sol' || extention.toLowerCase() === 'yul'
}
deactivate () {

Loading…
Cancel
Save