Suchiman / BlazorDualMode

Demo on how to run dynamically in client or server side mode
MIT License
145 stars 24 forks source link

Identify the browser webassembly support and pass the query string #3

Closed sowsan closed 5 years ago

sowsan commented 5 years ago

Is there a way to check the browser support for webassembly on the blazor app and load the corresponding type server or client using the work-around u have?

Suchiman commented 5 years ago

@sowsan most certainly, use a check like in https://stackoverflow.com/questions/47879864/how-can-i-check-if-a-browser-supports-webassembly and then use the result of that to decide on which mode (javascript file) you want to load