Skip to content

Commit

Permalink
1.0.4 version setting
Browse files Browse the repository at this point in the history
  • Loading branch information
kimorkim committed Jan 28, 2016
1 parent e2e1f9f commit f69b8f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entry/controllers/workspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ angular.module('workspace').controller("WorkspaceController",
$scope.setOfflineHW = function() {
$('#entryCategoryarduino').mouseup(function() {
Entry.HW.prototype.downloadConnector = function() {
$('#saveArduinoPlugin').attr('nwsaveas', '엔트리_하드웨어_v1.1.exe').trigger('click');
$('#saveArduinoPlugin').attr('nwsaveas', '엔트리_하드웨어_v1.1.1.exe').trigger('click');
$("#saveArduinoPlugin").on("change", function () {
var filePath = $('#saveArduinoPlugin').val();
//alert("File Path : " + filePath);
if (filePath !== "") {
var fs = require("fs");
fs.readFile("./hardware/plugin/엔트리_하드웨어_v1.1.exe", function (err, stream) {
fs.readFile("./hardware/plugin/엔트리_하드웨어_v1.1.1.exe", function (err, stream) {
fs.writeFile(filePath, stream, 'utf8', function (err) {
if (err)
alert("Unable to save file");
Expand Down

0 comments on commit f69b8f7

Please sign in to comment.