File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
tokenscript-viewer/src/components/app Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ export class TokenScriptEngine {
128
128
* Create a new TokenScript instance from a repo source
129
129
* @param sourceId The unique identifier for the TokenScript file
130
130
* @param viewBinding The view binding implementation to be used for this TokenScript
131
- * @param forceRefresh Bypass cache and re-resolve the TokenScript XML
131
+ * @param forceRefresh Bypass resolver cache and re-resolve this contracts TokenScripts
132
132
*/
133
- public async getTokenScript ( sourceId : string , viewBinding ?: IViewBinding , forceRefresh ?: true ) {
133
+ public async getTokenScript ( sourceId : string , viewBinding ?: IViewBinding , forceRefresh = false ) {
134
134
135
135
const resolveResult = await this . repo . getTokenScript ( sourceId , forceRefresh ) ;
136
136
Original file line number Diff line number Diff line change @@ -75,17 +75,17 @@ export class AppRoot {
75
75
76
76
walletSelector : HTMLWalletSelectorElement ;
77
77
78
- discoveryAdapter : ITokenDiscoveryAdapter = new DiscoveryAdapter ( )
78
+ private params = new URLSearchParams ( document . location . search ) ;
79
+ private viewerType : ViewerTypes = initViewerType ( this . params ) ;
80
+
81
+ discoveryAdapter : ITokenDiscoveryAdapter = new DiscoveryAdapter ( ! this . params . has ( "___bypassCache" ) )
79
82
attestationStorageAdapter = new AttestationStorageAdapter ( ) ;
80
83
tsLocalStorageAdapter = new LocalStorageAdapter ( ) ;
81
84
82
85
private iframeProvider : ethers . BrowserProvider ;
83
86
84
87
private confirmTxPopover : HTMLConfirmTxPopoverElement ;
85
88
86
- private params = new URLSearchParams ( document . location . search ) ;
87
- private viewerType : ViewerTypes = initViewerType ( this . params ) ;
88
-
89
89
public readonly tsEngine : TokenScriptEngine ;
90
90
91
91
constructor ( ) {
@@ -99,7 +99,7 @@ export class AppRoot {
99
99
( ) => this . attestationStorageAdapter ,
100
100
( ) => this . tsLocalStorageAdapter ,
101
101
{
102
- noLocalStorage : this . viewerType === "opensea" ,
102
+ noLocalStorage : this . viewerType === "opensea" || this . params . has ( "___bypassCache" ) ,
103
103
trustedKeys : [
104
104
{
105
105
issuerName : "Smart Token Labs" ,
You can’t perform that action at this time.
0 commit comments