ui: fix notification param

pull/92/head
undefined 4 years ago
parent 9c5d9079c9
commit 38bee6415d

@ -1,10 +0,0 @@
# EditorConfig is awesome: https://EditorConfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true

@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.21.12",
"version": "2.21.13",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",

@ -3,5 +3,5 @@ import Notification from 'vj/components/notification/index';
export default new AutoloadPage('notificationPage', () => {
const text = new URL(window.location.href).searchParams.get('notification');
if (text) new Notification(text).show();
if (text) Notification.success(text);
});

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.5.9",
"version": "4.5.10",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",

Loading…
Cancel
Save