fix: fix path.join
This commit is contained in:
@@ -24,7 +24,7 @@ function hash(z, x, y) {
|
||||
// MBTiles class for doing common operations (schema setup, tile reading,
|
||||
// insertion, etc.)
|
||||
module.exports = MBTiles;
|
||||
MBTiles.schema = fs.readFileSync(path.join(__dirname + '/schema.sql'), 'utf8');
|
||||
MBTiles.schema = fs.readFileSync(path.join(__dirname, './schema.sql'), 'utf8');
|
||||
|
||||
// Provides access to an mbtiles database file.
|
||||
// - uri: A parsed URL hash, the only relevant part is `pathname`.
|
||||
|
||||
Reference in New Issue
Block a user