diff --git a/MP-TAB-SERV/Pages/_Layout.cshtml b/MP-TAB-SERV/Pages/_Layout.cshtml index 0fcdec14..868a4a2d 100644 --- a/MP-TAB-SERV/Pages/_Layout.cshtml +++ b/MP-TAB-SERV/Pages/_Layout.cshtml @@ -30,7 +30,7 @@ 🗙 - + diff --git a/MP-TAB-SERV/Program.cs b/MP-TAB-SERV/Program.cs index 5c3934fb..9df10682 100644 --- a/MP-TAB-SERV/Program.cs +++ b/MP-TAB-SERV/Program.cs @@ -32,6 +32,9 @@ builder.Services.AddBlazoredLocalStorage(); builder.Services.AddBlazoredSessionStorage(); +builder.Services.AddHttpContextAccessor(); + + var app = builder.Build(); // aggiunt base URL x routing corretto diff --git a/MP-TAB-SERV/wwwroot/lib/WindowSize.js b/MP-TAB-SERV/wwwroot/lib/WindowSize.js new file mode 100644 index 00000000..a8d2d770 --- /dev/null +++ b/MP-TAB-SERV/wwwroot/lib/WindowSize.js @@ -0,0 +1,6 @@ +window.getWindowDimensions = function () { + return { + width: window.innerWidth, + height: window.innerHeight + }; +}; \ No newline at end of file