Skip to content

Commit 2b6c4ec

Browse files
author
minjk-bl
committed
CHROME: Fixed sample data path on File app by using github raw url
1 parent e9181b4 commit 2b6c4ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/m_apps/File.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ define([
5151
]
5252
}
5353

54-
this.dataPath = window.location.origin + com_Const.DATA_PATH + "sample_csv/";
54+
if (vpConfig.extensionType === 'notebook') {
55+
this.dataPath = window.location.origin + com_Const.DATA_PATH + "sample_csv/";
56+
} else if (vpConfig.extensionType === 'chrome') {
57+
// this.dataPath = com_Const.DATA_PATH + "sample_csv/";
58+
this.dataPath = 'https://raw.githubusercontent.com/visualpython/visualpython/main/data/sample_csv/';
59+
}
5560

5661
this.state = {
5762
fileExtension: 'csv',

0 commit comments

Comments
 (0)