Suggestion for toastr in frame

My concern is when inside a frame the popup will stick to frame's border and not the top window.

While this small workaround works, it only works if toastr's JS and CSS are defined in top window.