2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

codemirror: improve syntax highlighting

git-svn-id: https://svn.fhem.de/fhem/trunk@27545 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2023-05-09 17:42:12 +00:00
parent 3cfde3e5a1
commit ccbe8a92b2
2 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -900,8 +900,7 @@ var devices = [];
CodeMirror.registerHelper("hint", "fhem", function hintfhem(cm, callback, options) {
if( devices.length == 0 ) {
csrf = body.getAttribute('fwcsrf');
$.getJSON( '/fhem?cmd=jsonlist2&fwcsrf='+csrf, function ( data ) {
$.getJSON( addcsrf('/fhem?cmd=jsonlist2'), function ( data ) {
if( devices.length == 0 ) {
data.Results.foreach( function(k,v) {
devices.push(v);