Dear ROOTers,
I’m using Jsroot to draw histograms. I open them in following way:
var filename = "divided.root";
import {openFile, draw, settings} from '../../../hal_js/modules/main.mjs';
settings.Palette= 50;
let file = await openFile(filename)
let obj = await file.readObject('canvas;1');
draw('drawing', obj,'colz');
Code works with firefox, however in chromium nothing is displayed. The console suggests an error “core.mjs:91 Uncaught TypeError: Cannot read properties of null (reading ‘1’)” in the core.mjs file in line 91 that generates error looks like this:
Hi,
I solved the problem; when I typed your command, I got 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_7_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Mobile/15E148 Safari/604.1' .
I forgot to turn off “Mobile view”. Switching to “PC mode” solved issue.