1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
4 | // SPDX-License-Identifier: Apache-2.0
|
5 | var core_1 = require("@aws-amplify/core");
|
6 | exports.default = (function (callback) {
|
7 | if (core_1.browserOrNode().isBrowser && window.location) {
|
8 | var url = window.location.href;
|
9 | callback({ url: url });
|
10 | }
|
11 | else if (core_1.browserOrNode().isNode) {
|
12 | // continue building on ssr
|
13 | (function () { }); // noop
|
14 | }
|
15 | else {
|
16 | throw new Error('Not supported');
|
17 | }
|
18 | });
|
19 | //# sourceMappingURL=urlListener.js.map |
\ | No newline at end of file |