Fix bugs where project manager still uses callback style.
This commit is contained in:
parent
d10791bbad
commit
2dcd86d8be
4 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
The background process is responsible for opening Caret windows in response to
|
||||
The background process is responsible for opening Caret windows in response to
|
||||
app launches, choosing a file in the Files app on Chrome OS, and external
|
||||
messages.
|
||||
*/
|
||||
|
|
|
@ -336,7 +336,7 @@ define([
|
|||
if (!tab.file || tab.file.virtual) {
|
||||
return c(false);
|
||||
}
|
||||
tab.file.getPath(function(err, p) {
|
||||
tab.file.getPath().then(function(p) {
|
||||
if (p == path) {
|
||||
sessions.setCurrent(tab);
|
||||
found = true;
|
||||
|
@ -375,7 +375,7 @@ define([
|
|||
var file = new File();
|
||||
var watch = this.watchProjectFile.bind(this);
|
||||
var self = this;
|
||||
file.open("save", function() {
|
||||
file.open("save").then(function() {
|
||||
file.write(json);
|
||||
var id = file.retain();
|
||||
chrome.storage.local.set({retainedProject: id});
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
</div>
|
||||
|
||||
<script src="js/ace/ace.js"></script>
|
||||
<script src="js/lib/promise-0.1.1.min.js"></script>
|
||||
<script data-main="./js/main.js" src="require.js"></script>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Caret",
|
||||
"description": "Professional text editing for Chrome and Chrome OS",
|
||||
"version": "1.4.4",
|
||||
"version": "1.4.6",
|
||||
"manifest_version": 2,
|
||||
"icons": {
|
||||
"128": "icon-128.png"
|
||||
|
|
Loading…
Reference in a new issue