mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update std.js, README.md, SECURITY.md
This commit is contained in:
parent
9038829f24
commit
9012a161c3
|
@ -185,6 +185,7 @@ The WelsonJS framework suggests the following application release methods:
|
|||
- [johnjohnsp1/WindowsScriptHostExtension](https://github.com/johnjohnsp1/WindowsScriptHostExtension) - Inject DLL Prototype using Microsoft.Windows.ACTCTX COM Object
|
||||
- [kuntashov/jsunit](https://github.com/kuntashov/jsunit) - JSUnit port for Windows Scripting Host
|
||||
- [nickdoth/WSHHttpServer](https://github.com/nickdoth/WSHHttpServer) - HTTP server based on Windows Script Host
|
||||
- [joncasey/modern-hta](https://github.com/joncasey/modern-hta) - Run modern code in an HTML Application
|
||||
- FOSSA report [HTML](https://ics.catswords.net/fossa_report.html) [CSV](https://ics.catswords.net/fossa_report.csv) [TXT](https://ics.catswords.net/fossa_report.txt)
|
||||
- [License attributions of a stock images](https://policy.catswords.social/stock_images.html)
|
||||
|
||||
|
@ -195,7 +196,6 @@ The WelsonJS framework suggests the following application release methods:
|
|||
- XMPP [catswords@conference.omemo.id](xmpp:catswords@conference.omemo.id?join)
|
||||
- [Join Catswords OSS on Microsoft Teams (teams.live.com)](https://teams.live.com/l/community/FEACHncAhq8ldnojAI)
|
||||
- [Join Catswords OSS #welsonjs on Discord (discord.gg)](https://discord.gg/XKG5CjtXEj)
|
||||
- [Join Catswords OSS on Gather (app.gather.town)](https://app.gather.town/invite?token=IE2AYZDpS-Ocu3SzpSc0)
|
||||
|
||||
## License
|
||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fgnh1201%2Fwelsonjs?ref=badge_large)
|
||||
|
|
|
@ -52,5 +52,6 @@ If you discover any instances of this project being misused, please report them.
|
|||
- [GitHub Security Advisories](https://github.com/gnh1201/welsonjs/security)
|
||||
- abuse@catswords.net
|
||||
- ActivityPub [@catswords_oss@catswords.social](https://catswords.social/@catswords_oss)
|
||||
- XMPP [catswords@conference.xmpp.catswords.net](xmpp:catswords@conference.xmpp.catswords.net?join)
|
||||
- [Join Catswords on Microsoft Teams](https://teams.live.com/l/community/FEACHncAhq8ldnojAI)
|
||||
- XMPP [catswords@conference.omemo.id](xmpp:catswords@conference.omemo.id?join)
|
||||
- [Join Catswords OSS on Microsoft Teams (teams.live.com)](https://teams.live.com/l/community/FEACHncAhq8ldnojAI)
|
||||
- [Join Catswords OSS #welsonjs on Discord (discord.gg)](https://discord.gg/XKG5CjtXEj)
|
||||
|
|
12
lib/std.js
12
lib/std.js
|
@ -21,6 +21,18 @@ if (!Function.prototype.GetResource) {
|
|||
}
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/questions/45552695/why-element-matches-polyfill-doesnt-work
|
||||
// https://github.com/zloirock/core-js/issues/780
|
||||
// https://github.com/joncasey/modern-hta/blob/master/src/element-closest.js
|
||||
if (!Element.prototype.matches) {
|
||||
Element.prototype.matches = Element.prototype.msMatchesSelector
|
||||
}
|
||||
if (!Element.prototype.closest) {
|
||||
for (var p = this; p != null; p = p.parentElement) {
|
||||
if (p.matches(selector)) return p
|
||||
}
|
||||
}
|
||||
|
||||
// The provided code snippet has been corrected by ChatGPT.
|
||||
// https://chat.openai.com/share/eaab056c-d265-4ee3-b355-9f29176a9caa
|
||||
// Related issues: #75 #42 #30
|
||||
|
|
Loading…
Reference in New Issue
Block a user