We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a644d commit 4c24ddaCopy full SHA for 4c24dda
src/BootstrapBlazor/wwwroot/modules/fullscreen.js
@@ -2,11 +2,10 @@
2
3
export async function toggle(options) {
4
let el = null;
5
- options = options || {};
6
- if (options.id) {
+ if (options?.id) {
7
el = document.getElementById(options.id);
8
}
9
- else if (options.element && isElement(options.element)) {
+ else if (options?.element && isElement(options.element)) {
10
el = options.element;
11
12
else {
0 commit comments