10000 Fix error with createNewPublicLink. Fixes rclone/rclone-webui-react#112 · lwsyes/rclone-js-api@3f7fd31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f7fd31

Browse files
committed
Fix error with createNewPublicLink. Fixes rclone/rclone-webui-react#112
1 parent bc6b1b7 commit 3f7fd31

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import {axiosInstance} from "./axiosInstance";
22
import urls from "./endpoint";
3-
import {addColonAtLast, isLocalRemoteName} from "./Tools";
4-
5-
// const axiosInstance = require('./axiosInstance');
6-
// const urls = require('./endpoint');
7-
// const tools = require('./Tools')
3+
import {addColonAtLast, isLocalRemoteName} from "./tools";
84

95
/**
106
* getStats returns the current rclone stats.
@@ -57,7 +53,7 @@ export const setCurrentBandwidthSetting = (newRate) => {
5753
*/
5854
export const createNewPublicLink = (remoteName, remotePath) => {
5955
if (!isLocalRemoteName(remoteName)) {
60-
fs = addColonAtLast(remoteName);
56+
remoteName = addColonAtLast(remoteName);
6157
}
6258
return new Promise((resolve, reject) => {
6359
axiosInstance.post(urls.createPublicLink, {fs: remoteName, remote: remotePath}).then(res => {
File renamed without changes.

0 commit comments

Comments
 (0)
0