Skip to content

Commit

Permalink
Merge pull request #14 from devkimson/v0.1.4
Browse files Browse the repository at this point in the history
V0.1.4
  • Loading branch information
devkimson authored Oct 19, 2021
2 parents b4715ab + 9c3dfdd commit 360a92a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/js/uniton.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ const Uniton = (function () {

this.changeViewPage = function (url) {
url = url.replace(/\#/gm, '');
try{
if(API.baseurl==undefined){
throw new Error('[ApiDataException] Please check if there is baseurl property of apiData.json.');
}
} catch(e){
console.error(e.message);
} finally{
API.baseurl = '';
}
const home = `${API.baseurl}/home`;
if (url == '/index') url = home;
if (url == '/home') url = home;
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<script src="https://cdn.jsdelivr.net/gh/devkimson/Uniton@0.1.4/assets/js/uniton.js"
integrity="sha384-CdFZ96+E/fnYZgE/24DmAsHr9pevA5U0Dc8fTVqv1rqYFm80HHq4fbL2JhAaeeCV" crossorigin="anonymous">
</script>
<!-- <script src="assets/js/uniton.js"></script> -->
<script src="assets/js/index.js"></script>
</body>

Expand Down

0 comments on commit 360a92a

Please sign in to comment.