mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
18 lines
343 B
JavaScript
Executable File
18 lines
343 B
JavaScript
Executable File
import { UriFactory } from '../../Uri/UriFactory.js';
|
|
|
|
/**
|
|
* Redirect.
|
|
*
|
|
* @param {{delay:int},{uri:string}} data Message data
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
export function redirectMessage (data)
|
|
{
|
|
setTimeout(function ()
|
|
{
|
|
/** global: jsOMS */
|
|
window.location = UriFactory.build(data.uri);
|
|
}, parseInt(data.delay));
|
|
};
|