UNPKG

455 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var hybrid_file_system_1 = require("./hybrid-file-system");
4var helpers_1 = require("./helpers");
5var instance = null;
6function getInstance(writeToDisk) {
7 if (!instance) {
8 instance = new hybrid_file_system_1.HybridFileSystem(helpers_1.getContext().fileCache);
9 }
10 instance.setWriteToDisk(writeToDisk);
11 return instance;
12}
13exports.getInstance = getInstance;