#7 added errorPages
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
import {GoToError} from "@/utils/GoTo";
|
||||
|
||||
export const errorHandling = (code) => {
|
||||
if (code === 404) {
|
||||
GoToError('404')
|
||||
} else if (code === 500) {
|
||||
GoToError('500')
|
||||
} else if (code === 502) {
|
||||
GoToError('502')
|
||||
} else {
|
||||
GoToError('404')
|
||||
}
|
||||
}
|
||||
|
||||
export const setTitle = (title) => {
|
||||
document.title = `${title} | csgoWTF`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user