fix(core): update
This commit is contained in:
parent
5748bd8280
commit
eb596e5dd8
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiglobal/typedsocket',
|
||||
version: '2.0.21',
|
||||
version: '2.0.22',
|
||||
description: 'a typedrequest extension supporting websockets'
|
||||
}
|
||||
|
@ -1,7 +1 @@
|
||||
import * as plugins from './typedsocket.plugins.js';
|
||||
export * from './typedsocket.classes.typedsocket.js';
|
||||
|
||||
export const useWindowLocationOriginUrl = () => {
|
||||
const windowLocationResult = plugins.smarturl.Smarturl.createFromUrl(globalThis.location.origin).toString();
|
||||
return windowLocationResult;
|
||||
}
|
||||
export * from './typedsocket.classes.typedsocket.js';
|
@ -105,6 +105,11 @@ export class TypedSocket {
|
||||
return typedsocket;
|
||||
}
|
||||
|
||||
public static useWindowLocationOriginUrl = () => {
|
||||
const windowLocationResult = plugins.smarturl.Smarturl.createFromUrl(globalThis.location.origin).toString();
|
||||
return windowLocationResult;
|
||||
}
|
||||
|
||||
// INSTANCE
|
||||
public side: TTypedSocketSide;
|
||||
public typedrouter: plugins.typedrequest.TypedRouter;
|
||||
|
Loading…
Reference in New Issue
Block a user