The skp protocol is undocumented for the HtmlDialog class.
You should be using the sketchup object. IE …
sketchup.do_action("action");
The docs specifically say …
Use the
sketchup.callback_method_nameto invoke the callback method from your html dialog.
And why is this in the Rubocop topic ?