mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
guard against missing session
This commit is contained in:
parent
c6e27314e9
commit
23935bae6d
@ -1223,7 +1223,7 @@ define(function(require, exports, module) {
|
||||
tabs.getTabs().forEach(function(tab) {
|
||||
if (tab.editorType == "ace") {
|
||||
var c9Session = tab.document.getSession();
|
||||
if (c9Session.session)
|
||||
if (c9Session && c9Session.session)
|
||||
detectSyntax(c9Session, tab.path);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user