Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
No EOL
254 B
Text
11 lines
No EOL
254 B
Text
import ownerDocument from './ownerDocument';
|
|
/**
|
|
* Returns the owner window of a given element.
|
|
*
|
|
* @param node the element
|
|
*/
|
|
|
|
export default function ownerWindow(node) {
|
|
var doc = ownerDocument(node);
|
|
return doc && doc.defaultView || window;
|
|
} |