2020-09-18 15:15:37 +00:00
|
|
|
import * as plugins from './webclient.plugins';
|
|
|
|
|
2020-09-18 16:13:57 +00:00
|
|
|
export class CsWebclient {
|
|
|
|
webstore: plugins.webstore.WebStore;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.webstore = new plugins.webstore.WebStore({
|
|
|
|
dbName: 'consentsoftware',
|
|
|
|
storeName: 'webclient'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public async isCookieLevelSet(): Promise<boolean> {
|
|
|
|
const result = await this.webstore.get('acceptedCookieLevels');
|
|
|
|
return !!result;
|
|
|
|
}
|
|
|
|
|
|
|
|
public async setCookieLevels(cookieLevels ): Promise<boolean> {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|