Remove unnecssary init from view
This commit is contained in:
@@ -46,7 +46,6 @@ module SpeckleConnector
|
||||
dui3_view = Ui::DUI3View.new(dialog_specs, app)
|
||||
app.ui_controller.register_ui(Ui::SPECKLE_DUI3_ID, dui3_view)
|
||||
dui3_view.show
|
||||
dui3_view.init
|
||||
end
|
||||
# rubocop:enable Naming/VariableNumber
|
||||
end
|
||||
|
||||
@@ -32,12 +32,6 @@ module SpeckleConnector
|
||||
dialog.show
|
||||
end
|
||||
|
||||
def init
|
||||
init_callback = "window['hostApp'] = 'sketchup'"
|
||||
init_callback = "localStorage.setItem('hostApp', 'sketchup')"
|
||||
dialog.execute_script(init_callback)
|
||||
end
|
||||
|
||||
# @return [SpeckleConnector::Ui::DUI3Dialog] wrapper for the {Sketchup::HTMLDialog}
|
||||
def dialog
|
||||
@dialog ||= SpeckleConnector::Ui::DUI3Dialog.new(commands: commands, **@dialog_specs)
|
||||
|
||||
Reference in New Issue
Block a user