mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 03:35:31 -05:00
Adding JS Types (#1749)
Added types for some exceptions, config objects, and sleep()
This commit is contained in:
@@ -24,6 +24,11 @@ hooks.onInterpreterReady.add(function override(pyScript) {
|
||||
// Error hook utilities
|
||||
|
||||
// Custom function to show notifications
|
||||
|
||||
/**
|
||||
* Add a banner to the top of the page, notifying the user of an error
|
||||
* @param {string} message
|
||||
*/
|
||||
export function notify(message) {
|
||||
const div = document.createElement("div");
|
||||
div.className = "py-error";
|
||||
|
||||
Reference in New Issue
Block a user