projects
/
samples
/
web
/
BluetoothChat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[BluetoothChat]update BluetoothChat(tizen_2.1)
[samples/web/BluetoothChat.git]
/
js
/
app.model.js
diff --git
a/js/app.model.js
b/js/app.model.js
index
2882a7a
..
0cda8d1
100644
(file)
--- a/
js/app.model.js
+++ b/
js/app.model.js
@@
-24,7
+24,8
@@
function Model() {
console.log('getDefaultAdapter OK: ' + (new Date().getTime() - time) + ' milliseconds.');
callback();
} catch (error) {
console.log('getDefaultAdapter OK: ' + (new Date().getTime() - time) + ' milliseconds.');
callback();
} catch (error) {
- console.error('Problem with bluetooth device. Application can\'t work properly: ' + error.message);
+ alert('Problem with bluetooth device. Application can\'t work properly: ' + error.message);
+ tizen.application.getCurrentApplication().exit();
}
},
}
},