diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..3c59ba84 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Finch/Includes/cap"] + path = Finch/Includes/cap + url = https://github.com/tiagozip/cap.git \ No newline at end of file diff --git a/Finch/Finch.csproj b/Finch/Finch.csproj index 8e659e17..ccbcf9f2 100644 --- a/Finch/Finch.csproj +++ b/Finch/Finch.csproj @@ -27,7 +27,8 @@ - + + \ No newline at end of file diff --git a/Finch/Includes/cap b/Finch/Includes/cap new file mode 160000 index 00000000..8584867e --- /dev/null +++ b/Finch/Includes/cap @@ -0,0 +1 @@ +Subproject commit 8584867e44b409f7d0be4f16c9621c60a303dff3 diff --git a/Finch/Logging/LogLevelOverrides.cs b/Finch/Logging/LogLevelOverrides.cs index 771aa5db..81d74d41 100644 --- a/Finch/Logging/LogLevelOverrides.cs +++ b/Finch/Logging/LogLevelOverrides.cs @@ -26,10 +26,10 @@ public class LogLevelOverrides : Dictionary this["System.Net.Http.HttpClient"] = LogLevel.Warning; this["Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager"] = LogLevel.Error; - string executingAssemblyName = Assembly.GetEntryAssembly()?.GetName().Name; - if (executingAssemblyName != null) + string entryAssemblyName = Assembly.GetEntryAssembly()?.GetName().Name; + if (entryAssemblyName != null) { - this[executingAssemblyName] = LogLevel.Debug; + this[entryAssemblyName] = LogLevel.Debug; } } } \ No newline at end of file diff --git a/Finch/Resources/cap_min_0_1_41.js b/Finch/Resources/cap_min_0_1_41.js deleted file mode 100644 index 7cd73d8f..00000000 --- a/Finch/Resources/cap_min_0_1_41.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{const e="vibrate"in navigator&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;if("undefined"==typeof window)return;const t=(e,t={})=>window?.CAP_CUSTOM_FETCH?window.CAP_CUSTOM_FETCH(e,t):fetch(e,t);function i(e,t){let i=function(e){let t=2166136261;for(let i=0;i>>0}(e),s="";function r(){return i^=i<<13,i^=i>>>17,i^=i<<5,i>>>0}for(;s.length{const t=atob(e),i=new Uint8Array(t.length);for(let e=0;e{try{var s=new DecompressionStream("deflate-raw"),r=s.writable.getWriter(),a=s.readable.getReader(),n=[];a.read().then(function t(s){if(s.done){for(var r=0,o=0,l=0;l{r.close()}).catch(i)}catch(e){i(e)}});return new Promise(e=>{var t=setTimeout(()=>{a(),e({__timeout:!0})},2e4),s=document.createElement("iframe");s.setAttribute("sandbox","allow-scripts"),s.setAttribute("aria-hidden","true"),s.style.cssText="position:absolute;width:1px;height:1px;top:-9999px;left:-9999px;border:none;opacity:0;pointer-events:none;";var r=!1;function a(){r||(r=!0,clearTimeout(t),window.removeEventListener("message",n),s.parentNode&&s.parentNode.removeChild(s))}function n(t){var i=t.data;i&&"object"==typeof i&&("cap:instr"===i.type?(a(),i.blocked?e({__blocked:!0,blockReason:i.blockReason||"automated_browser"}):i.result?e(i.result):e({__timeout:!0})):"cap:error"===i.type&&(a(),e({__timeout:!0})))}window.addEventListener("message",n),s.srcdoc='