blob: 4f3ec9d03293e2e3b80ae15ea23e59b1b1bd4223 [file] [log] [blame]
/**
* @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);
}