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
8d02d6c6
Commit
8d02d6c6
authored
May 31, 2021
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typpo
parent
577943ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
remixd-handle.js
apps/remix-ide/src/app/files/remixd-handle.js
+6
-6
No files found.
apps/remix-ide/src/app/files/remixd-handle.js
View file @
8d02d6c6
...
...
@@ -31,9 +31,9 @@ const profile = {
}
export
class
RemixdHandle
extends
WebsocketPlugin
{
constructor
(
locahostProvider
,
appManager
)
{
constructor
(
loca
l
hostProvider
,
appManager
)
{
super
(
profile
)
this
.
loca
hostProvider
=
loca
hostProvider
this
.
loca
lhostProvider
=
local
hostProvider
this
.
appManager
=
appManager
}
...
...
@@ -41,7 +41,7 @@ export class RemixdHandle extends WebsocketPlugin {
if
(
super
.
socket
)
super
.
deactivate
()
// this.appManager.deactivatePlugin('git') // plugin call doesn't work.. see issue https://github.com/ethereum/remix-plugin/issues/342
if
(
this
.
appManager
.
actives
.
includes
(
'hardhat'
))
this
.
appManager
.
deactivatePlugin
(
'hardhat'
)
this
.
locahostProvider
.
close
((
error
)
=>
{
this
.
loca
l
hostProvider
.
close
((
error
)
=>
{
if
(
error
)
console
.
log
(
error
)
})
}
...
...
@@ -82,11 +82,11 @@ export class RemixdHandle extends WebsocketPlugin {
this
.
canceled
()
}
},
3000
)
this
.
locahostProvider
.
init
(()
=>
{})
this
.
loca
l
hostProvider
.
init
(()
=>
{})
this
.
call
(
'manager'
,
'activatePlugin'
,
'hardhat'
)
}
}
if
(
this
.
locahostProvider
.
isConnected
())
{
if
(
this
.
loca
l
hostProvider
.
isConnected
())
{
this
.
deactivate
()
}
else
if
(
!
isElectron
())
{
// warn the user only if he/she is in the browser context
...
...
@@ -97,7 +97,7 @@ export class RemixdHandle extends WebsocketPlugin {
label
:
'Connect'
,
fn
:
()
=>
{
try
{
this
.
locahostProvider
.
preInit
()
this
.
loca
l
hostProvider
.
preInit
()
super
.
activate
()
setTimeout
(()
=>
{
if
(
!
this
.
socket
||
(
this
.
socket
&&
this
.
socket
.
readyState
===
3
))
{
// 3 means connection closed
...
...
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