You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the render function in genomeshader/view.py always includes the code to open a new browser window. This behavior is not always desired, and there should be a way to control whether or not this code is included.
Proposed Solution:
Add a boolean parameter to the render function that determines whether or not to include the new browser window code. If the parameter is True, the function should include the code to open a new browser window. If the parameter is False, the function should not include this code.
Tasks:
Update the render function signature to include a new boolean parameter, new_window.
Update the render function body to conditionally include the new browser window code based on the value of new_window.
Update all calls to the render function to include the new new_window parameter.
Test the updated render function with new_window set to both True and False to ensure it works as expected.
Acceptance Criteria:
The render function should have a new boolean parameter, new_window.
If new_window is True, the render function should include the code to open a new browser window.
If new_window is False, the render function should not include the code to open a new browser window.
All calls to the render function should include the new new_window parameter.
The updated render function should be covered by tests to ensure it works as expected.
The text was updated successfully, but these errors were encountered:
Problem:
Currently, the render function in genomeshader/view.py always includes the code to open a new browser window. This behavior is not always desired, and there should be a way to control whether or not this code is included.
Proposed Solution:
Add a boolean parameter to the render function that determines whether or not to include the new browser window code. If the parameter is True, the function should include the code to open a new browser window. If the parameter is False, the function should not include this code.
Tasks:
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: