Skip to content

Commit ce22068

Browse files
author
Stefania
committed
added unofficial plugin error
1 parent 8f6459a commit ce22068

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/socket-daemon.js

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ export default class SocketDaemon extends Daemon {
132132
const found = responses.some(r => {
133133
if (r && r.response && r.response.status === 200) {
134134
this.agentInfo = r.data;
135+
136+
if (this.agentInfo.update_url.indexOf('downloads.arduino.cc') === -1) {
137+
this.error.next('unofficial plugin');
138+
}
139+
135140
if (r.response.url.indexOf(PROTOCOL.HTTPS) === 0) {
136141
this.selectedProtocol = PROTOCOL.HTTPS;
137142
}

0 commit comments

Comments
 (0)