OnAfterRenderAsync(bool firstRender) { if (firstRender) { if (Convert.ToBoolean(objglobalSettings.DisqusEnabled)) { await DisqusInterop.CreateDisqus( JSRuntime, disqusBody, @$ "https://{objglobalSettings.DisqusShortName.Trim()}.disqus.com/embed.js"); } } }
protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { if (Convert.ToBoolean(objGeneralSettings.DisqusEnabled)) { string url = NavigationManager.ToAbsoluteUri($"/ViewBlogPost/{NormalizeTitle}").AbsoluteUri; await DisqusInterop.ResetDisqus( JSRuntime, NormalizeTitle.ToString(), url, SelectedBlog.Title); DisqusState.SetDisplayDisqus(true); } } }