mirror of
https://github.com/186526/handlers.js
synced 2024-10-13 00:29:43 +00:00
Add Txiki.js Adapter.
This commit is contained in:
@ -7,6 +7,9 @@ export const platform = (() => {
|
||||
if (typeof Deno != "undefined") {
|
||||
return "Deno";
|
||||
}
|
||||
if (typeof tjs != "undefined") {
|
||||
return "txiki.js";
|
||||
}
|
||||
if (typeof self != "undefined") {
|
||||
return "Service Worker";
|
||||
}
|
||||
@ -18,6 +21,8 @@ export const version = (() => {
|
||||
return process.version;
|
||||
case "Deno":
|
||||
return Deno.version.deno;
|
||||
case "txiki.js":
|
||||
return tjs.versions.tjs;
|
||||
case "Service Worker":
|
||||
return undefined;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user