Created
November 27, 2023 09:58
-
-
Save divyasonaraa/5831991aff9c44158ea72c693e4b313b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!navigator.onLine && isBackgroundSyncSupported.value) { | |
// Notify user about successful blog creation | |
$q.notify({ | |
message: "Offline Blog Created Successfully!", | |
type: "positive", | |
timeout: 2000, | |
}); | |
// Redirect to the home page | |
router.push("/"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment