File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { axiosInstance } from "./axiosInstance" ;
2
2
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" ;
8
4
9
5
/**
10
6
* getStats returns the current rclone stats.
@@ -57,7 +53,7 @@ export const setCurrentBandwidthSetting = (newRate) => {
57
53
*/
58
54
export const createNewPublicLink = ( remoteName , remotePath ) => {
59
55
if ( ! isLocalRemoteName ( remoteName ) ) {
60
- fs = addColonAtLast ( remoteName ) ;
56
+ remoteName = addColonAtLast ( remoteName ) ;
61
57
}
62
58
return new Promise ( ( resolve , reject ) => {
63
59
axiosInstance . post ( urls . createPublicLink , { fs : remoteName , remote : remotePath } ) . then ( res => {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments