Skip to content
代码片段 群组 项目
  • Eduardo Sanz García's avatar
    7bcc6ebb
    Add eslint rule to disable window.open · 7bcc6ebb
    Eduardo Sanz García 创作于
    `window.open` could cause cross-site leaks. We have a utility function,
    `visitUrl`, which detects if a URL is external or internal and offers
    protection against those leaks.
    
    We enable a new eslint rule to discourage `window.open` and promote the
    use of `visitUrl`.
    7bcc6ebb
    历史
    Add eslint rule to disable window.open
    Eduardo Sanz García 创作于
    `window.open` could cause cross-site leaks. We have a utility function,
    `visitUrl`, which detects if a URL is external or internal and offers
    protection against those leaks.
    
    We enable a new eslint rule to discourage `window.open` and promote the
    use of `visitUrl`.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。