Hi, in UI::HtmlDialog, javascript flat function doesn’t work.
Uncaught ReferenceError: flat is not defined
What is the specification of the navigator inside Sketchup 2020( I remembre to have read chromium, but what is the release the specifcation ?)
You can try opening the developer tools (available in the context menu of a HtmlDialog) and check the window.navigator.
1 Like
TIG
April 30, 2020, 2:04pm
3
‘array.flat(depth)’ is a relatively new js function, but it’s easy enough to define your own ‘flatten(array)’ function using something like ‘concat’ and use that - Google…
1 Like
Thanks for your help. I will check with “window.navigator.”
Chrome/64.0.3282.119
From the SketchUp API Tracker Issues …
How to check what version SketchUp’s CEF is ?
… @john_drivenupthewall supplied this code …
wd = UI::HtmlDialog.new(
{
:dialog_title => "ChromeEmbeddedFramework",
:style => UI::HtmlDialog::STYLE_DIALOG
})
wd.set_url('chrome://flags/')
wd.show
Also issue: Include CEF versions in API documentation
… resulted in … the API Release Notes …
Updated Chromium (CEF), used in UI::HtmlDialog
SketchUp 2019: Chrome/64.0.3282.119
SketchUp 2018: Chrome/56.0.2924.76
2 Likes