Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
9dec4e8a
Unverified
Commit
9dec4e8a
authored
Jun 05, 2018
by
yann300
Committed by
GitHub
Jun 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1339 from greg-shyft/shyft-greg/recompile
Override control-s and command-s to auto-recompile
parents
67a412b9
193bae60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
app.js
src/app.js
+9
-0
No files found.
src/app.js
View file @
9dec4e8a
...
@@ -235,6 +235,15 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -235,6 +235,15 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
return
'Are you sure you want to leave?'
return
'Are you sure you want to leave?'
}
}
// Run the compiler instead of trying to save the website
$
(
window
).
keydown
(
function
(
e
)
{
// ctrl+s or command+s
if
((
e
.
metaKey
||
e
.
ctrlKey
)
&&
e
.
keyCode
===
83
)
{
e
.
preventDefault
()
runCompiler
()
}
})
function
importExternal
(
url
,
cb
)
{
function
importExternal
(
url
,
cb
)
{
self
.
_components
.
compilerImport
.
import
(
url
,
self
.
_components
.
compilerImport
.
import
(
url
,
(
loadingMsg
)
=>
{
(
loadingMsg
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment