kopia lustrzana https://github.com/c9/core
guard against missing session
rodzic
c6e27314e9
commit
23935bae6d
|
@ -1223,7 +1223,7 @@ define(function(require, exports, module) {
|
||||||
tabs.getTabs().forEach(function(tab) {
|
tabs.getTabs().forEach(function(tab) {
|
||||||
if (tab.editorType == "ace") {
|
if (tab.editorType == "ace") {
|
||||||
var c9Session = tab.document.getSession();
|
var c9Session = tab.document.getSession();
|
||||||
if (c9Session.session)
|
if (c9Session && c9Session.session)
|
||||||
detectSyntax(c9Session, tab.path);
|
detectSyntax(c9Session, tab.path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue