Skip to content

Commit 4850ba3

Browse files
committed
Update v1.7.6
* Fixed Notification
1 parent 119a995 commit 4850ba3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.5
1+
1.7.6

fxmanifest.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ games { 'gta5' }
44
author 'Musiker15 - MSK Scripts'
55
name 'msk_core'
66
description 'Core functions for MSK Scripts'
7-
version '1.7.5'
7+
version '1.7.6'
88

99
lua54 'yes'
1010

html/script.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
window.addEventListener('message', (event) => {
22
if (event.data.action == 'notify') {
3-
notification(event.data.title, event.data.message, event.data.type, event.data.time);
3+
notification(event.data.title, event.data.message, event.data.info, event.data.time);
44
}
55
})
66

@@ -45,7 +45,7 @@ const replaceColors = (str, obj) => {
4545
var sound = new Audio('notification.mp3');
4646
sound.volume = 0.25;
4747

48-
notification = (title, message, type, time) => {
48+
notification = (title, message, info, time) => {
4949
for (color in colors) {
5050
if (message.includes(color)) {
5151
let obj = {};
@@ -58,13 +58,13 @@ notification = (title, message, type, time) => {
5858
}
5959

6060
const notification = $(`
61-
<div class="notify-div wrapper" style="border-left: 0.5vh solid ${colours[type]}; ">
62-
<div class="notify-icon-box" style="border: 0.2vh solid ${colours[type]};">
63-
<i class="${icons[type]} fa-ms notify-icon" style="color: ${colours[type]}"></i>
61+
<div class="notify-div wrapper" style="border-left: 0.5vh solid ${colours[info]}; ">
62+
<div class="notify-icon-box" style="border: 0.2vh solid ${colours[info]};">
63+
<i class="${icons[info]} fa-ms notify-icon" style="color: ${colours[info]}"></i>
6464
</div>
6565
6666
<div class="notify-text-box">
67-
<p style="color:${colours[type]}; font-size: 2vh; font-weight: 500; margin-bottom: 0vh; margin-top: 1vh;">${title}</p>
67+
<p style="color:${colours[info]}; font-size: 2vh; font-weight: 500; margin-bottom: 0vh; margin-top: 1vh;">${title}</p>
6868
<p style="margin-top: 0; color: rgba(247, 247, 247, 0.75);">${message}</p>
6969
</div>
7070
</div>

0 commit comments

Comments
 (0)