| /** | |
| * @license | |
| * Copyright 2024 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| // This file adds some simple checks to match internal Google rules. | |
| // Internally at Google it has different a implementation. | |
| import {locationAssign, locationReplace, setLocationHref} from 'safevalues/dom'; | |
| export function setHref(loc: Location, url: string) { | |
| setLocationHref(loc, url); | |
| } | |
| export function replace(loc: Location, url: string) { | |
| locationReplace(loc, url); | |
| } | |
| export function assign(loc: Location, url: string) { | |
| locationAssign(loc, url); | |
| } |