mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🆙 Init V3
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { CreateLinkEvent, HabboWebTools } from '@nitrots/nitro-renderer';
|
||||
|
||||
export const OpenUrl = (url: string) =>
|
||||
{
|
||||
if(!url || !url.length) return;
|
||||
|
||||
if(url.startsWith('http'))
|
||||
{
|
||||
HabboWebTools.openWebPage(url);
|
||||
}
|
||||
else
|
||||
{
|
||||
CreateLinkEvent(url);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user